Advertisement

strange error message on DirectX

Started by December 29, 1999 08:30 AM
2 comments, last by GameDev.net 25 years, 2 months ago
You should probably be using 'WinMain' for windows programming. 'main' is mostly just for console apps, (dos).
Did you change your Project-type from Console-App. to Win32-Windowed?
Advertisement
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