Gossip BCB (II)

Source: Internet
Author: User

Mutual Translation between Delphi and BCB

I drank too much with my friends this evening. What do I say? Let's just make it simple: P

I also hope my friends don't laugh. No way, man, maybe it's me :)

To put it bluntly, there are really few BCB books on the market. What's the solution? It seems that we are a second-class citizen studying BCB, but there is no way to do it. Let's find a solution by ourselves: P

In fact, Pascal has almost the same relationship with C syntax, which provides a help for B's friends. It can use the current Delphi books to learn BCB, solving the problem of few BCB books. So how can we solve the translation relationship of the syntax? Take a look at the following example of explain and you will understand :)

Example: delphi language BCB

 

 

Procedure TfrmMain. N2Click (Sender: Tobject); void _ fastcall TfrmMain: N2Click (Tobject * Sender)

Begin {

FrmAbout. ShowModal; frmAbout-> ShowModal ();

End ;}

 

Procedure tfrmmain. n3click (Sender: tobject); void _ fastcall tfrmmain: n3click (tobject * sender)

VaR {

InputString: String; String inputString;

Begin

InputString: = inputBox ("…"); InputString = inputBox ("…");

ShowMessage ('...... '); ShowMessage ('...... ');

End ;}

 

From the above we can clearly see the differences between them, the Definition Format of functions, the way variables are defined, the way they are assigned, and the subordination of classes, but the relationship between them remains unchanged. It is precisely because of the fixed conversion relationship between them that the feasibility of using a VCL for both BCB and Delphi is determined.

I am not writing well today, but I still want to fulfill my agreement with my friends. I hope everyone understands that I have to take a break early and I will go to work tomorrow. Maybe tomorrow I will write a better joke :)

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.