BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Using Delphi units in C++ Builder

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> C++ Builder (Non-Technical)
View previous topic :: View next topic  
Author Message
hi@konstantin-schauwecker
Guest





PostPosted: Wed Oct 22, 2003 4:30 pm    Post subject: Using Delphi units in C++ Builder Reply with quote



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);
};
Back to top
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> C++ Builder (Non-Technical) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.