Версия для печати темы
Нажмите сюда для просмотра этой темы в оригинальном формате
Форум программистов > C++ Builder > Программирование в Delphi на C++


Автор: Xela 2.6.2005, 23:57
Можно ли как то связать Builder C++ и Delphi?? Можно ли программировать в Delphi на С++??

Автор: bel_nikita 3.6.2005, 00:04
Цитата
Можно ли программировать в Delphi на С++??
А смысл? smile

Автор: Xela 3.6.2005, 00:06
Я с С++ недавно ознакомился Хочю по эксперементировать

Автор: jorkug 3.6.2005, 04:25
Цитата
Можно ли как то связать 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.

Автор: Амортизатор 4.6.2005, 22:47
Цитата(Xela @ 2.6.2005, 23:57)
Можно ли программировать в Delphi на С++??

А вот это нельзя. В дельфи неразрешены некотрые опреации из С++ - перегрузка функций например, поскольку паскаль очень ограничен по сравнению с С++. Также невозможно в нем множественное наследование, работа с данными на низком уровне и многое другое.
Зато возможно обратное - программирование на С++ Builder'e на Дельфи, т к в С++ можно реализовать все, что можно в Дельфи.

Автор: Любитель 5.6.2005, 15:19
dcu модули линковать можно и в Билдере и в Дельфи.

Powered by Invision Power Board (http://www.invisionboard.com)
© Invision Power Services (http://www.invisionpower.com)