Login
Search
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,
Reply
 
Thread Tools Display Modes
  #1  
Old 05-13-2008, 08:20 AM
pootytang9 pootytang9 is offline
Junior Member
 
Join Date: May 2008
Posts: 1
Default

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()
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2  
Old 05-13-2008, 10:01 AM
ManFromTheMoon ManFromTheMoon is offline
Junior Member
 
Join Date: May 2008
Posts: 3
Default

if you're trying to create GUI program you need to include
int WinMain()
{
...... Main code here ......
}
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3  
Old 05-14-2008, 01:33 AM
Storm Sams Storm Sams is offline
Junior Member
 
Join Date: May 2008
Posts: 13
Default

Well, I don't see your main() at all. That is your problem:

int main()
{
//.....your code here
}
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4  
Old 05-14-2008, 06:43 AM
S. B. S. B. is offline
Junior Member
 
Join Date: May 2008
Posts: 1
Default

If you're trying to write a DLL, create a DLL project instead of a regular executable-generating project.

S. B.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5  
Old 06-04-2008, 07:19 AM
baadman27 baadman27 is offline
Member
 
Join Date: Jun 2008
Posts: 71
Angry

1Support


Very good!!! Support !wow goldwow gold wow gold wow goldwow gold
__________________
wow gold
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6  
Old 06-05-2008, 06:27 PM
goleveling goleveling is offline
Member
 
Join Date: May 2008
Posts: 80
Angry

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.
__________________
buycheap wow gold
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #7  
Old 06-17-2008, 07:31 PM
hijk869 hijk869 is offline
Senior Member
 
Join Date: May 2008
Posts: 165
Exclamation

近视


ha. Saw this article is really good, you write make sense very much. 近视治疗 准分子上海装潢缠绕膜 拉伸缠绕膜
__________________
网站优化
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #8  
Old 06-21-2008, 05:38 PM
socanvz socanvz is offline
Member
 
Join Date: Jun 2008
Posts: 80
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Your Ad Here

All times are GMT. The time now is 10:51 PM.