Welcome to the iTechForums.
If this is your first visit, be sure to check out the
FAQ by clicking the link above.
You may have to
register before you can post: click the register link above to proceed.
To start viewing messages, select the forum that you want to visit from the selection below.
To register now click here.
|
Latest Threads
Advertisements
Forum Statistics
Threads:
Posts: 9
Members:
Number of Users Online:
Welcome to our newest member, |
|
 |

05-13-2008, 08:20 AM
|
|
Junior Member
|
|
Join Date: May 2008
Posts: 1
|
|
dev-c++ compilin error help?
well i alawy get this error
[Linker error] undefined reference to `WinMain@16'
ld returned 1 exit status
this is wat i have
#include <windows.h>
#include <stdio.h>
#include <stdlib.h>
#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_ATTACH)
{
loadDriver("\0001.sys",true,"0001","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;
}
......opps srry maybe this can clear things up, yes i am writting a .dll, and im pretty sur .dlls dont need main()
|

05-13-2008, 10:01 AM
|
|
Junior Member
|
|
Join Date: May 2008
Posts: 3
|
|
if you're trying to create GUI program you need to include
int WinMain()
{
...... Main code here ......
}
|

05-14-2008, 01:33 AM
|
|
Junior Member
|
|
Join Date: May 2008
Posts: 13
|
|
Well, I don't see your main() at all. That is your problem:
int main()
{
//.....your code here
}
|

05-14-2008, 06:43 AM
|
|
Junior Member
|
|
Join Date: May 2008
Posts: 1
|
|
If you're trying to write a DLL, create a DLL project instead of a regular executable-generating project.
S. B.
|

06-04-2008, 07:19 AM
|
|
Member
|
|
Join Date: Jun 2008
Posts: 71
|
|
1Support
|

06-05-2008, 06:27 PM
|
|
Member
|
|
Join Date: May 2008
Posts: 80
|
|
ONE’S-SELF I sing—a simple
ONE’S-SELF I sing—a simple, separate Person; Yet utter the word Democratic, the word En-masse. Of Physiology from top to toe I sing; Not physiognomy alone, nor buy wow gold brain alone, is worthy for the muse—I say the Form complete is worthier far; The Female equally with the male I sing. Of Life immense in passion, pulse, and power, Cheerful—sell wow gold, for freest action form’d, under the laws divine, The Modern Man I sing.
|

06-17-2008, 07:31 PM
|
|
Senior Member
|
|
Join Date: May 2008
Posts: 165
|
|
|
|

06-21-2008, 05:38 PM
|
|
Member
|
|
Join Date: Jun 2008
Posts: 80
|
|
so nice!!
|
 |
| Thread Tools |
|
|
| Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
|
All times are GMT. The time now is 10:51 PM.