2,586
社区成员




//DLL.cpp
extern "C" __declspec( dllexport ) int ExportedFunction(HWND hParent)
{
AFX_MANAGE_STATE(AfxGetStaticModuleState());
return MessageBoxW(hParent, L"Test", L"Message", MB_OK);
}
//DLLCall.cpp
extern "C" int ExportedFunction(HWND hParent);
#pragma comment(lib, "../debug/dll.lib")
{
ExportedFunction(NULL);
}