Computer Forums

Member Login

Remember Me? Sign Up! | Forgot Password
 
Slogan
 
Closed Thread
Old 01-16-2005, 12:47 AM   #1 (permalink)
 
Junior Techie

Join Date: Dec 2004

Posts: 88

developer

Default Windows API programming

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
__________________
Somewhere I Belong...
developer is offline  
 
Closed Thread

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On