This is the mail archive of the
cygwin@sources.redhat.com
mailing list for the Cygwin project.
RE: newbie question: hellowin on Windows NT
- To: "'cygwin at sources dot redhat dot com'" <cygwin at sources dot redhat dot com>
- Subject: RE: newbie question: hellowin on Windows NT
- From: "Richard Hellicar (EML)" <Rick dot Hellicar at eml dot ericsson dot se>
- Date: Fri, 27 Oct 2000 11:08:32 +0200
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.quoss@gzs.de]
> Sent: 25 October 2000 09:52
> To: 'cygwin@sources.redhat.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@sourceware.cygnus.com