| www.delorie.com/archives/browse.cgi | search |
| Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
| List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
| List-Archive: | <http://sourceware.org/ml/cygwin/> |
| List-Post: | <mailto:cygwin AT cygwin DOT com> |
| List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs> |
| 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: | <1113218952.cohyha7exe0@w3.mail.sapo.pt> |
| Date: | Mon, 11 Apr 2005 12:29:12 +0100 |
| From: | josollari AT sapo DOT pt |
| To: | cygwin AT cygwin DOT com |
| Subject: | problem using INITCOMMONCONTROLSEX with cygwin |
| MIME-Version: | 1.0 |
| User-Agent: | PTMail Webmail v1.2.7 |
Hi,
I use cygwin to compile my C++ programs. In one of them I had this error:
Exercise.cpp:18: error: `INITCOMMONCONTROLSEX' undeclared (first use this
function)
Exercise.cpp:18: error: (Each undeclared identifier is reported only once for
each function it appears in.)
Exercise.cpp:18: error: parse error before `;' token
Exercise.cpp:20: error: `InitCtrlEx' undeclared (first use this function)
Exercise.cpp:22: error: `InitCommonControlsEx' undeclared (first use this
function)
The code of the program is this:
INITCOMMONCONTROLSEX InitCtrlEx;
InitCtrlEx.dwSize = sizeof(INITCOMMONCONTROLSEX);
InitCtrlEx.dwICC = ICC_BAR_CLASSES;
InitCommonControlsEx(&InitCtrlEx);
I included Commctrl.h
I linked comctl32.lib
And I have comctl32.dll version 5.82.2900.2180
I also tried to use just:
InitCommonControls()
but this latter gives me this error:
2 [main] Rain 3976 handle_exceptions: Exception: STATUS_ACCESS_VIOLATION
1854 [main] Rain 3976 open_stackdumpfile: Dumping stack trace to
Rain.exe.stackdump
How can I solve this problem?
Thanks,
Joao
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |