EDN Admin
Well-known member
<font size=1>
<font color="#ff0000 ------ Build started: Project: HelloWorld, Configuration: Debug Win32 ------</font>
<font color="#ff0000 Compiling...</font>
<font color="#ff0000 main.cpp</font>
<font color="#ff0000 Linking...</font>
<font color="#ff0000 main.obj : error LNK2019: unresolved external symbol __imp__MessageBoxA@16 referenced in function _WinMain@16</font>
<font color="#ff0000 C
ocuments and SettingsAdministratorDesktopdev ProjectsHWHelloWorldDebugHelloWorld.exe : fatal error LNK1120: 1 unresolved externals</font>
<font color="#ff0000 Build log was saved at "file://c
ocuments and SettingsAdministratorDesktopdev ProjectsHWHelloWorldHelloWorldDebugBuildLog.htm"</font>
<font color="#ff0000 HelloWorld - 2 error(s), 0 warning(s)</font>
<font color="#ff0000 ========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========</font>
Please bear in mind that Im *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: <font color="#0000ff" size=2>
#include</font><font size=2> </font><font color="#800000" size=2><windows.h> </font><font color="#0000ff" size=2>
int</font><font size=2> WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lcCmdLine, </font><font color="#0000ff" size=2>int</font><font size=2> nShowCmd)
{
MessageBox(NULL, </font><font color="#800000" size=2>"All your base are belong to us!"</font><font size=2>, </font><font color="#800000" size=2>"Hello World"</font><font size=2>, MB_OK | MB_ICONEXCLAMATION);
</font><font color="#0000ff" size=2>return</font><font size=2> 0;
}
Can anyone tell me what is wrong? </font></font>
View the full article
<font color="#ff0000 ------ Build started: Project: HelloWorld, Configuration: Debug Win32 ------</font>
<font color="#ff0000 Compiling...</font>
<font color="#ff0000 main.cpp</font>
<font color="#ff0000 Linking...</font>
<font color="#ff0000 main.obj : error LNK2019: unresolved external symbol __imp__MessageBoxA@16 referenced in function _WinMain@16</font>
<font color="#ff0000 C

<font color="#ff0000 Build log was saved at "file://c

<font color="#ff0000 HelloWorld - 2 error(s), 0 warning(s)</font>
<font color="#ff0000 ========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========</font>
Please bear in mind that Im *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: <font color="#0000ff" size=2>
#include</font><font size=2> </font><font color="#800000" size=2><windows.h> </font><font color="#0000ff" size=2>
int</font><font size=2> WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lcCmdLine, </font><font color="#0000ff" size=2>int</font><font size=2> nShowCmd)
{
MessageBox(NULL, </font><font color="#800000" size=2>"All your base are belong to us!"</font><font size=2>, </font><font color="#800000" size=2>"Hello World"</font><font size=2>, MB_OK | MB_ICONEXCLAMATION);
</font><font color="#0000ff" size=2>return</font><font size=2> 0;
}
Can anyone tell me what is wrong? </font></font>
View the full article