This is the mail archive of the cygwin@sourceware.cygnus.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: windows


Mojo@majorbbs.grn.es wrote:

> hi! I've recently downloaded r18 but I came up with a problem with
> MS windows programs, such as this tiny one:
>
> #include <windows.h>
> int WINAPI WinMain(HINSTANCE hInstance,
>                    HINSTANCE hPrevInstance,
>                    LPSTR lpCmdLine, int nCmdShow)
> {
>         MessageBox(NULL,
>           "TEST"
>           "You can exit now", MB_OK|MB_ICONASTERISK);
>         return(0);
> }
>
> First of all, I didn't know where to find the library with
> MessageBox().
> After a grep, I find it in libglaux.a; ok, I linked it with the
> program.
> It compiles ok, butwhen executing windowsasks me glaux.dll; I've tried
>
> to build it, but itseems it doesn't work.
> I need some help :)
>
> .al
> -
> For help on using this list (especially unsubscribing), send a message
> to
> "gnu-win32-request@cygnus.com" with one line of text: "help".

  MessageBox is in libuser32.a/user32.dll

   Russ Smyth
   jrussell@voicenet.com


-
For help on using this list (especially unsubscribing), send a message to
"gnu-win32-request@cygnus.com" with one line of text: "help".


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]