This is the mail archive of the cygwin@sources.redhat.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: newbie question: hellowin on Windows NT


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


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