Re: Simpel WIN32 Message box
- From: "William DePalo [MVP VC++]" <willd.no.spam@xxxxxxxx>
- Date: Sat, 16 Apr 2005 19:59:08 -0400
"-Polity`4h-" <-Polity`4h-@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:FCA7673A-9C15-4FAF-BDC0-99ED20579F56@xxxxxxxxxxxxxxxx
> Hi, i got a problem.
> ...
> The compiller gives this error back:
>
> Linking...
> main.obj : error LNK2019: unresolved external symbol __imp__MessageBoxA@16
Look up the MessageBox() function here:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/winui/winui/windowsuserinterface/windowing/dialogboxes/dialogboxreference/dialogboxfunctions/messagebox.asp
Scroll down to the end of the text. You'll see it requires that you link
against USER32.LIB.
>From the menu choose Project->Properties.
Then open up the Linker "folder" and select its Input item. In the Addition
Dependencies edit box to the right enter the name of the library.
Make sure that you do this for both the Debug and Release project
configurations.
Regards,
Will
.
- Follow-Ups:
- Re: Simpel WIN32 Message box
- From: -Polity`4h-
- Re: Simpel WIN32 Message box
- References:
- Simpel WIN32 Message box
- From: -Polity`4h-
- Simpel WIN32 Message box
- Prev by Date: Re: Java outperforms C++?
- Next by Date: Re: newbie: Addition of vars
- Previous by thread: Simpel WIN32 Message box
- Next by thread: Re: Simpel WIN32 Message box
- Index(es):
Loading