附件目录如下:
ffraymarine.dll
ffraymarine.h
ffraymarine.lib
ffraymarine.libx使用静态调用Project/Project Setting/Link/Object/library modules: ffraymarine.lib
尝试过以下两种方式
extern "C" int _stdcall Validate(char *strSerialNumber);_declspec(dllimport) int _stdcall Validate(char *strSerialNumber);
都无法通过编译
请大虾们指教!
ffraymarine.dll
ffraymarine.h
ffraymarine.lib
ffraymarine.libx使用静态调用Project/Project Setting/Link/Object/library modules: ffraymarine.lib
尝试过以下两种方式
extern "C" int _stdcall Validate(char *strSerialNumber);_declspec(dllimport) int _stdcall Validate(char *strSerialNumber);
都无法通过编译
请大虾们指教!
Validate pValidate;
HINSTANCE hDll = ::LoadLibrary("FFRaymarine.dll");
if (hDll != NULL)
{
pValidate = (Validate)GetProcAddress(hDll,"Validate");
if (pValidate != NULL)
{
int result = pValidate("test");;
CString str;
str.Format("%d",result);
MessageBox(str);
}
FreeLibrary(hDll);
}