Re: [Dev-C++] InitCommonControls() Problem
Open Source C & C++ IDE for Windows
Brought to you by:
claplace
|
From: Bosso <han...@gm...> - 2002-11-28 15:58:09
|
You need to add -lcomctl32 to your linker options. Hannes On Thu, 28 Nov 2002 16:08:17 +0200 Megan Webster <me...@e-...> wrote: > Hi everyone, > > I get the following error messages when trying to compile my project that > uses "CommonControls": > [Basically a small program that uses a ToolBar...] > > - C:\Dev-Cpp\Projects\MenuBar.o [Warning] In function `WinMain': > - [Linker error] undefined reference to `InitCommonControls@0' > - [Linker error] undefined reference to `CreateToolbarEx@52' > - C:\Dev-Cpp\Projects\Makefile.win [Build Error] [MenuBar.exe] Error 1 > > I have included the Header file <commctrl.h> > > In WinMain() if have done the following... > --- > InitToolbar(); [this is the method that I use to initialize > the ToolBars structure] > InitCommonControls(); > > tbwnd = CreateToolbarEx(hwnd, > WS_VISIBLE | WS_CHILD | WS_BORDER, > ID_TOOLBAR, > NUMBUTTONS, > hThisInstance, > IDTB_BMP, > tbButtons, > NUMBUTTONS, > 0, 0, 16, 16, > sizeof(TBBUTTON)); > ---- > I don't recieve any other error messages and my Resource file and Header > file are all in order. > > If you have any ideas on how I can solve this problem, please let me know. > Thanks, > Megan. > > > ------------------------------------------------------- > This SF.net email is sponsored by: Get the new Palm Tungsten T > handheld. Power & Color in a compact size! > http://ads.sourceforge.net/cgi-bin/redirect.pl?palm0002en > _______________________________________________ > Dev-cpp-users mailing list > Dev...@li... > TO UNSUBSCRIBE: http://www.noicys.cjb.net/devcpp/ub.htm > https://lists.sourceforge.net/lists/listinfo/dev-cpp-users |