Mail Archives: cygwin/2000/10/27/05:09:39
Hi,
I see the same behaviour.
Zero the wndclass structure before you use it...add the following at around line 34
memset (&wndclass, 0, sizeof(wndclass));
Rick
> -----Original Message-----
> From: "Quoß, Clemens" [mailto:clemens DOT quoss AT gzs DOT de]
> Sent: 25 October 2000 09:52
> To: 'cygwin AT sources DOT redhat DOT com'
> Subject: newbie question: hellowin on Windows NT
>
>
> Hello,
>
> I'm rather new to writing programs with Cygnus, so
> I decided to start with the hellowin example
> from C. Petzolds book 'Programming Windows'.
>
> After some amendments to the source it
> compiled cleanly. Having compiled with '-mwindows'
> I have no problems to start it from the cygwin
> bash command line. The windows starts nicely.
>
> But compiling with '-mwindows -mno-cygwin' and
> starting hellowin.exe directly from Windows NT explorer,
> brings no result. There is a background task in the
> task manager named 'hellowin.exe', but no window
> is shown.
>
> In Windows 98, it works. So it seems to be a problem
> with the Windows NT version and cygwin.
>
> I included the source 'hellowin.c' and the output of
> 'cygcheck -s -r -v hellowin.exe' after having compiled
> with '-mno-cygwin' option.
>
> Your help is very much appreciated.
>
> TIA
>
> Clemens Quoss
>
> <<hellowin.c>> <<tocygwin.txt>>
>
>
--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com
- Raw text -