delphi调用vc编写的DLL应注意的问题

VC:

 

.h

extern "C" _declspec(dllexport) bool GetUrl( const char *url, const char *savepath );

 

Delphi:

function GetUrl( Url:PChar; SavePath:PChar ):Boolean;cdecl external 'http.dll' name 'GetUrl';

 

 

你可能感兴趣的:(delphi调用vc编写的DLL应注意的问题)