| 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: | <1113204297.1fr5ln9jifk0@w1.mail.sapo.pt> |
| Date: | Mon, 11 Apr 2005 08:24:57 +0100 |
| From: | josollari AT sapo DOT pt |
| To: | cygwin AT cygwin DOT com |
| Subject: | INITCOMMONCONTROLSEX (undeclared first use this... |
| MIME-Version: | 1.0 |
| User-Agent: | PTMail Webmail v1.2.7 |
| X-MIME-Autoconverted: | from quoted-printable to 8bit by delorie.com id j3B7PMlt003425 |
Hi,
I am following a win32 tutorial, but I had a problem in one of the exercise.
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
SMS GRÁTIS do seu PC para qualquer rede nacional (TMN, Vodafone, Optimus e PTC). Basta instalar o SAPO Messenger e adicionar amigos!
Vá agora a : http://messenger.sapo.pt/sms/
--
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 |