Saturday, May 22, 2010

Help with c++ error?

heres the peice of code that contains error and these are my errors





expected `,' or `;' before "bool"


expected init-declarator before "bool"





--------------------------------------...


using namespace std;


DWORD dwThreadID = 0;




















void Main()








bool APIENTRY DllMain(HMODULE hModule, DWORD dwReason, LPVOID lpvReserved){


if(dwReason == DLL_PROCESS_ATTACH){


DisableThreadLibraryCalls(hModule);


--------------------------------------...

Help with c++ error?
Your forgot to put a semi-colon after void Main(), should be


void Main(); // which probably need to be main() and not Main()





(and BTW, if you're writing a DLL, you shouldn't need any main(), just create a DLL project instead of an executable project)





S. B.

pear

No comments:

Post a Comment