well i alawy get this error
[Linker error] undefined reference to `WinMain@16'
ld returned 1 exit status
this is wat i have
#include %26lt;windows.h%26gt;
#include %26lt;stdio.h%26gt;
#include %26lt;stdlib.h%26gt;
#include "stealth.h"
DWORD dwThreadID = 0;
void MainLoop()
{
while(1)
{
Sleep(10);
}
}
BOOL APIENTRY DllMain( HANDLE hModule,
DWORD ul_reason_for_call,
LPVOID lpReserved
)
{
if(ul_reason_for_call==DLL_PROCESS_AT...
{
loadDriver("\\0001.sys",true,"0001",... Driver");
DWORD MainLoop (void * pdata);
if(unlinkThread((int)dwThreadID) != 1)
{
MessageBox(0,"Invalid Operating System Detected!","Error",MB_ICONERROR);
ExitProcess(0);
return FALSE;
}
return TRUE;
}
return TRUE;
}
Dev-c++ compilin error help?
If you're trying to write a DLL, create a DLL project instead of a regular executable-generating project.
S. B.
Reply:if you're trying to create GUI program you need to include
int WinMain()
{
...... Main code here ......
}
Reply:Well, I don't see your main() at all. That is your problem:
int main()
{
//.....your code here
}
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment