strange error message on DirectX

Started by
2 comments, last by GameDev.net 24 years, 3 months ago
You should probably be using 'WinMain' for windows programming. 'main' is mostly just for console apps, (dos).
Advertisement
Did you change your Project-type from Console-App. to Win32-Windowed?
Hello, When I tried to compile a few examples from the book Windows Game Prog. for Dummies and Tricks of the Game Prog. Gurus I got this error.
Unresolved External Symbol _main

I include the ddraw.lib and it seems all of the }s are in place. It was on Prog_10_3 to be exact.

Can someone please help me?

You can't write directx programs in a console project!
Use Win32 windowed

This topic is closed to new replies.

Advertisement