DLL运行时动态加加载的问题
1、error C2440: 'initializing' : cannot convert from 'int (__stdcall *)(void)' to 'void (__cdecl *)(const char *)'
This conversion requires a reinterpret_cast, a C-style cast or function-style cast
This conversion requires a reinterpret_cast, a C-style cast or function-style cast
解决方法:要对GetProcAddress()函数的指针强制转换,如
typedef void (*PFN)(LPCTSTR);
PFN pfun=(PFN)::GetProcAddress(hModule,"ExportFunc");
PFN pfun=(PFN)::GetProcAddress(hModule,"ExportFunc");
2、