hi@konstantin-schauwecker Guest
|
Posted: Wed Oct 22, 2003 4:30 pm Post subject: Using Delphi units in C++ Builder |
|
|
I want to use a Delphi unit in my C++ Builder application. I've tried
the following:
Activated the linker option in Delphi to produce C++ object files.
Added the object file to my C++ Builder application and translated the
interface part to a c++ header file.
When compiling it with C++ Builer I get a lot of undefined symbols in
the object file like "__linkproc__ __fastcall HandleFinally()" or
"__linkproc__ fastcall BeforeDistruction()". Also I get undefined
references for the items in the header file.
I've searched on groups.google.com but didn't find anything helpful
:-(
Hope somebody has an idea (AFAIK the VCL is written with delphi, so it
should be possible to combine them).
Btw. here's my code:
DELPHI:
type
Internationalization=class
private
ini: TIniFile;
language: string;
public
constructor create(path: string);
destructor destroy;
procedure transForm(form: TForm);
end;
====
C++:
class Internationalization
{
private:
TIniFile* ini;
AnsiString language;
public:
Internationalization(AnsiString path);
~Internationalization();
void transForm(TForm* form);
};
|
|