[Dev-C++] InitCommonControls() Problem
Open Source C & C++ IDE for Windows
Brought to you by:
claplace
|
From: Megan W. <me...@e-...> - 2002-11-28 14:05:55
|
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.
|