0
typedef void (*EntryPointfuncPtr)(int argc, const char * argv);
HINSTANCE LoadME;
LoadMe = LoadLibrary("LoadMe.dll");
if (LoadMe != 0)
EntryPointfuncPtr LibMainEntryPoint; //GIve error in .c file but working fine in Cpp file.
//Error:illegal use of this type as an expression
LibMainEntryPoint = (EntryPointfuncPtr)GetProcAddress(LoadMe,"entryPoint");
有沒有人可以告訴我如何去除這個編譯錯誤。在.c文件中加載DLL時出現問題