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 :)