How to compile C++ source code in DLL and use in Delphi app?

Status
Not open for further replies.

mcoster

Member level 2
Joined
Jan 26, 2004
Messages
51
Helped
7
Reputation
14
Reaction score
1
Trophy points
1,288
Activity points
633
Using VC++ DLL in Delphi

Anyone know how can i compile a C++ source code in a DLL and use this DLL in a Delphi application ?

Thanks
 

Re: Using VC++ DLL in Delphi

search for
'delphi header translator'
there are some....

Hugo
 

Using VC++ DLL in Delphi

hi,

try to declare your function in Delphi
as showed below:

function MyFunctionFromVCDLL():LongInt; cdecl external 'myvcdll.dll';

for function in VC:

extern __declspec(dllexport) unsigned long MyFunctionFromVCDLL();

ut
 

Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…