J
Jdphenix
Guest
------ Build started: Project: HelloWorld, 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\Administrator\Desktop\dev Projects\HW\HelloWorld\Debug\HelloWorld.exe : fatal error LNK1120: 1 unresolved externals
Build log was saved at "file://c:\Documents and Settings\Administrator\Desktop\dev Projects\HW\HelloWorld\HelloWorld\Debug\BuildLog.htm"
HelloWorld - 2 error(s), 0 warning(s)
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
Please bear in mind that I'm *very* much a newbie to much any form of programming. Maybe someone can help me out a little.
The above is the output from Build as I try to compile the following code:
#include
<windows.h>
int
WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lcCmdLine, int nShowCmd)
{
MessageBox(NULL,
"All your base are belong to us!", "Hello World", MB_OK | MB_ICONEXCLAMATION);
return 0;
}
Can anyone tell me what is wrong?
Continue reading...