| Цитата | | Можно ли как то связать Builder C++ и Delphi?? |
можно:
| Цитата(InterBase) | C++Builder includes a modified version of the Borland Delphi compiler that allows Delphi units and forms to be compiled and linked into C++Builder applications. To add a Delphi unit to your C++Builder project, use the Add to Project option of the Project menu, or select the “+” icon on the Project Manager window, to open the Add to Project dialog. Select Pascal unit as the File Type and select the Object Pascal (.PAS) file you wish to add to the project.
If you are copying Object Pascal source files from a Delphi project directory over to a C++Builder project directory, be sure you copy the form definition (.DFM) files and Windows resource (.RES) files associated with those source files to the C++Builder project directory as well. When the C++Builder project containing the Delphi unit(s) is built, the Delphi units will automatically be compiled with the C++Builder version of the Delphi compiler. This compiler produces the following output:
· A C++ header file with an .HPP extension containing the C++ equivalents of the Object Pascal declarations contained in the interface section of an Object Pascal source file. · A object code file (.OBJ) in a format compatible with C++Builder.
The C++ header files the compiler produces for the Delphi units can be included in any C++ source files that utilize the classes declared in the Delphi units. Do not use header files generated with C++Builder 1.0 in C++Builder 3.0.
| |