Chat BCB (2)

zhaozj2021-02-16  42

Delphi and BCB translation

Drink too much this evening, what is it? Still simple,: P

I also hope that my friends don't laugh, no way, men, maybe I like this :)

Still less, now the BCB book on the market really is very small, what is the way, it seems that we learn BCB is the second-class citizen, no way, or we want to do it: P

In fact, PASCAL and C grammatical relationships are almost, which gives a friend who studies BCB to provide a help. You can use the current Delphi book to learn BCB, solve the problem of less BCB books. How do you solve the translation relationship between grammar? Look at the following example, you will understand :)

Example: Delphi Language BCB Language

Procedure tfrmmain.n2crlick (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 infutstring;

Begin

InputString: = INPUTBOX ("..."); InputString = INPUTBOX ("...");

ShowMessage ('... "); showmessage (' ...");

End;}

From the above, we can see the difference between them, the definition format of the function, the definition method of variables, the way to assign value, the dependence of the class, but the relationship between them is constant, it is Due to this fixed conversion relationship between them determines that BCB and Delphi use a VCL feasibility.

Today, I have written bad, but I still have to complete the agreement with my friends. I have to understand everyone, I have to rest early, I will go to work early tomorrow, maybe I will write better tomorrow :)

转载请注明原文地址:https://www.9cbs.com/read-26025.html

New Post(0)