Archived

This topic is now archived and is closed to further replies.

CharSoft

WinAPI error

Recommended Posts

Hello, I was working with Dev-C++ for Win32 projects, till i heard how great Visual C++ is with it. i create the most bare-bones app possible, (only a include windows.h and a winmain function that returns 0) and I get a strange error about "unresolved external symbol _main". anybody?

Share this post


Link to post
Share on other sites
You created a Win32 Console App project (or whatever it''s called). In those the compiler expects to find a "main" function. Create a Win32 Windowed App project instead. In those the compiler expects a "WinMain" instead of a "main" function.

Share this post


Link to post
Share on other sites
am i as dumb as im beginning to think?

geez... ill try it... thanks...

LATER: well, that was it. thank you, apperantly dev-c++ was making it too easy for me...

[edited by - charsoft on March 15, 2003 7:18:47 PM]

Share this post


Link to post
Share on other sites