I was trying Windows API programming. In the tutorial the first prog was
#include <windows.h>
int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nCmdShow) {
MessageBox (NULL, "Hello World" , "Hello", 0);
return 0;
}
It was simply to check wether our compiler supported it or not. I was working in Visual Studio .net 2003.
I got this error when compiling
Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 13.10.3077 for 80x86
Copyright (C) Microsoft Corporation 1984-2002. All rights reserved.
source1.c
Microsoft (R) Incremental Linker Version 7.10.3077
Copyright (C) Microsoft Corporation. All rights reserved.
/out:source1.exe
source1.obj
source1.obj : error LNK2019: unresolved external symbol __imp__MessageBoxA@16 re
ferenced in function _WinMain@16
source1.exe : fatal error LNK1120: 1 unresolved externals