Simpel WIN32 Message box
- From: "-Polity`4h-" <-Polity`4h-@xxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Sat, 16 Apr 2005 15:40:03 -0700
Hi, i got a problem.
I've got VS2005 Beta 1 installed, and the newest platform SDK.
I'm a newbie in the WIN32 Programming. but if i try to compile this piece of
code:
#define WIN32_LEAN_AND_MEAN
#include <windows.h> // the main windows headers
#include <windowsx.h> // a lot of cool macros
int WINAPI WinMain(HINSTANCE hinstance, HINSTANCE hprevinstance, LPSTR
lpcmdline, int ncmdshow)
{
MessageBox(NULL, "THERE CAN BE ONLY ONE!!!", "MY FIRST WINDOWS PROGRAM",
MB_OK | MB_ICONEXCLAMATION);
return(0);
}
The compiller gives this error back:
Linking...
main.obj : error LNK2019: unresolved external symbol __imp__MessageBoxA@16
referenced in function _WinMain@16
Debug/Game_02.exe : fatal error LNK1120: 1 unresolved externals
Build log was saved at "file://c:\Documents and Settings\Administrator\Mijn
documenten\Visual Studio\Projects\Game_02\Game_02\Debug\BuildLog.htm"
Game_02 - 2 error(s), 0 warning(s)
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
Anyone knows how to solve this problem? I really like the compilers GUI, and
i want to learn on this compiler :)
.
- Follow-Ups:
- Re: Simpel WIN32 Message box
- From: William DePalo [MVP VC++]
- Re: Simpel WIN32 Message box
- Prev by Date: Re: copying data
- Next by Date: Re: Java outperforms C++?
- Previous by thread: where is thye bext place to buy MSDN subscription?
- Next by thread: Re: Simpel WIN32 Message box
- Index(es):
Relevant Pages
|