VC写的DLL,在VB,BCB,Delphi中如何使用???
在VC中申明函数如下:
extern "C"
{
_declspec(dllexport) bool __stdcall ReadRegComConfig();
_declspec(dllexport) bool __stdcall InitCommPort();
_declspec(dllexport) void __stdcall UnInitCommPort();
_declspec(dllexport) bool __stdcall SetCommPara(char *commname);
_declspec(dllexport) bool __stdcall GetData(char *data,int *size);
}
同时在其def文件中加入:
EXPORTS
; Explicit exports can go here
ReadRegComConfig;
InitCommPort;
UnInitCommPort;
SetCommPara;
GetData;
本人在VB,BCB,Delphi中从没使用过VC写的DLL,所以如上导出的函数,最好能给出详细的解答。