Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Message-ID: <35DBB8B7AC89D4118E98009027B1009B07199107@IL27EXM10.cig.mot.com> From: Siever Bryan-BSIEVER1 To: "'cygwin AT cygwin DOT com'" Subject: CreateWindow Errors and undefined reference to InitCommonControls Date: Fri, 19 Apr 2002 07:51:02 -0500 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Greetings, I have two problems that I am hoping some of you could shed some light on. I am getting a NULL from calls to subsequent calls to CreateWindow after the first one to create the parent window. This happens for any call to it, I am using the instance value passed to WinMain and am using the handle of the parent window. Here is the kicker: This happens on Win98 but I also run the code on my WinNT machine and have absolutely no problems with it. I do remeber there being an issue in how hInst is handled between winNT and win98. Anyone else run into this problem? Any suggestions/insight would be greatly appreciated. My second problem is that during linking, I get an undefined reference to InitCommonControls function, I am linking against gdi32 and user32, is there some other library I should be linking with as well? Thanks in advace for all suggestions/hints/comments, they are much appreciated! -Bryan -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/