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");
Can anybody tell me how to remove this compile error.