I've decided I wanted to finally get around to learning direct x, and I have a book that teaches to make a toned down version of a game I hope to one day create.
Its a basic version of it, but its the exact engine and style of how I want to make my game.
Anyway, Im doing all the exercises, and want to use VC++ 2005. This book uses dx 8 and its code is a bit old.
I am getting this error
------ Build started: Project: Example 2, Configuration: Debug Win32 ------
Compiling...
main.cpp
Linking...
main.obj : error LNK2019: unresolved external symbol __imp__MessageBoxA@16 referenced in function _WinMain@16
C:\Documents and Settings\Owner\Desktop\Programming\Windows Game Programming Book\Chapter 2\Example 2\Debug\Example 2.exe : fatal error LNK1120: 1 unresolved externals
Build log was saved at "file://c:\Documents and Settings\Owner\Desktop\Programming\Windows Game Programming Book\Chapter 2\Example 2\Example 2\Debug\BuildLog.htm"
Example 2 - 2 error(s), 0 warning(s)
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
with this code
#define WIN32_LEAN_AND_MEAN
#include <windows.h>
#include <windowsx.h>
int WINAPI WinMain(HINSTANCE hinstance, HINSTANCE hprevinstance, LPSTR lpcmdline, int ncmdshow)
{
MessageBox(NULL,"There can only be one!!!","My 1st Windows Program", MB_OK | MB_ICONEXCLAMATION);
return(0);
}