Re: Simpel WIN32 Message box



"-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


.


Loading