Home > Back-end >  Delphi and C Builder mixed writing problems
Delphi and C Builder mixed writing problems

Time:10-14

In c + + Builder Form using Delphi Form the following problems:
1, pas files to CB, is very simple, and compiled automatically generated *, HPP file, so that the CB calls the Function of pas or Process. However, pas can't call to CB Function in the Form, do not know how to contain CB forms, Delphi can only Uses DCU or pas.

2, because cannot contain HPP file, do not know the Cpp file form HWND and so on, can't send messages to the CB form, and therefore cannot serve as the main body, Cpp objects in the operation,

CodePudding user response:

Is commonly used in cb pas files, if you want to, in turn, suggest that made com to Delphi cb calls,

CodePudding user response:

C + + Builder you can compile pas unit, but in the pas unit contains the CPP unit, this seems to be not heard of, in general, C and D mixed development should be independent of the function or class, in the pas unit, setting up reasonable parameters, CPP invokes the function or a class of pas, generation into the appropriate parameter to go,

CodePudding user response:

I want to realize the function form embedded, Delphi form embedded in CB form, if to be embedded, basically don't have big change,

CodePudding user response:

You can join a notification in pas unit functions, such as:

The unit pas_form1;

USES//...

Type
TForm1=class (TForm)
//...
Public
{Public declarations}
procedure Notify (... );
end;

Notify () the parameters in the design casually, you can get the data you need is ok,

CodePudding user response:

BCB is based on the VCL, you can compile most of the Delphi. Pas files, Delphi cannot directly compiled c or c + + code, including the BCB forms related files,

Com or DLL for use in Delphi can make it,

CodePudding user response:

Pas unit can't take the initiative to take the CPP data, but can be invoked by CPP active. Pas units do a interface functions.

CodePudding user response:

reference tree2000 reply: 3/f
I want to realize the function form embedded, Delphi form embedded in CB form, if to be embedded, basically don't have big change,


Cb call Delphi, eventually not Delphi call cb
  • Related