This is the mail archive of the
cygwin@cygwin.com
mailing list for the Cygwin project.
Re: CreateWindow Errors and undefined reference to InitCommonControls
- From: "Larry Hall (RFK Partners, Inc)" <lhall at rfk dot com>
- To: Siever Bryan-BSIEVER1 <BSIEVER1 at motorola dot com>, "'cygwin at cygwin dot com'" <cygwin at cygwin dot com>
- Date: Fri, 19 Apr 2002 10:49:04 -0400
- Subject: Re: CreateWindow Errors and undefined reference to InitCommonControls
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@rfk.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/