Skip to main content
gamedev.net
🔒 Locked

WinAPI error

Started by CharSoft Mar 15, 2003 at 5:51 PM 1 replies 300+ views
Original Post
CharSoft
CharSoft
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?
Dactylos
Dactylos
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.
CharSoft
CharSoft
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]

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.