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: <4.3.1.2.20020419104232.02a11e00@pop.ma.ultranet.com> X-Sender: lhall AT pop DOT ma DOT ultranet DOT com Date: Fri, 19 Apr 2002 10:49:04 -0400 To: Siever Bryan-BSIEVER1 , "'cygwin AT cygwin DOT com'" From: "Larry Hall (RFK Partners, Inc)" Subject: Re: CreateWindow Errors and undefined reference to InitCommonControls In-Reply-To: <35DBB8B7AC89D4118E98009027B1009B07199107@IL27EXM10.cig.mot .com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" At 08:51 AM 4/19/2002, Siever Bryan-BSIEVER1 wrote: >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. This list deals with Cygwin specific issues. As such this issue is off-topic. You may want to consult a Win32 specific list or reference book. >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! nm -A /lib/*.a | grep InitComm also not really Cygwin specific but... Larry Hall lhall AT rfk DOT com RFK Partners, Inc. http://www.rfk.com 838 Washington Street (508) 893-9779 - RFK Office Holliston, MA 01746 (508) 893-9889 - FAX -- 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/