Discussion:
[Mingw-users] initcommoncontrolsex
Lorenzo
2001-09-05 09:48:04 UTC
Permalink
Hi, all list

I have written this code in a program:

#include <windows.h>
#include <commctrl.h>
.
.
.
INITCOMMONCONTROLSEX icex;
icex.dwSize = sizeof(INITCOMMONCONTROLSEX);
icex.dwICC = ICC_PROGRESS_CLASS;
InitCommonControlsEx(&icex)
.
.
.

When i try to compile with this command:
g++ -mwindows -O3 -c main.cpp

I take this:
main.cpp:57: `INITCOMMONCONTROLSEX' undeclared (first use this function)

I have downloaded all update files, where is the problem?

----------------------------------------------------------------------------
---
If debugging is the process of removing bugs,
then programming must be the process of putting them in.
----------------------------------------------------------------------------
---
Danny Smith
2001-09-05 19:03:03 UTC
Permalink
Post by Lorenzo
#include <windows.h>
#define _WIN32_IE 0x0400 /* match to target version of Iexplorer */
Post by Lorenzo
#include <commctrl.h>
.
.
.
INITCOMMONCONTROLSEX icex;
icex.dwSize = sizeof(INITCOMMONCONTROLSEX);
icex.dwICC = ICC_PROGRESS_CLASS;
InitCommonControlsEx(&icex)
.
.
.
g++ -mwindows -O3 -c main.cpp
main.cpp:57: `INITCOMMONCONTROLSEX' undeclared (first use this
function)
I have downloaded all update files, where is the problem?
----------------------------------------------------------------------------
Post by Lorenzo
---
If debugging is the process of removing bugs,
then programming must be the process of putting them in.
----------------------------------------------------------------------------
Post by Lorenzo
---
_______________________________________________
MinGW-users mailing list
https://lists.sourceforge.net/lists/listinfo/mingw-users
http://travel.yahoo.com.au - Yahoo! Travel
- Got Itchy feet? Get inspired!

Loading...