From: Wobien <roo...@pl...> - 2007-11-28 14:11:46
|
Hello, I would like to use the Windows control List View. MSDN gives me the following code snippet to prepare the use of the WC_LISTVIEW class: INITCOMMONCONTROLSEX icex; // Ensure that the common control DLL is loaded. icex.dwSize = sizeof(INITCOMMONCONTROLSEX); icex.dwICC = ICC_LISTVIEW_CLASSES; InitCommonControlsEx(&icex); I copied this into my program. Also, MSDN gives the following Function Information for InitCommomControlsEx : Minimum DLL Versioncomctl32.dll version 4.70 or later Header: commctrl.h Import library: comctl32.lib Minimum operating systems: Windows 2000, Windows NT 4.0 with Internet Explorer 3.0, Windows 98, Windows 95 with Internet Explorer 3.0 I included commctrl.h and added libcomctrl32 When compiling i get a linker error: undefined reference to InitCommonControlsEx@4 Is this a version problem? Or have i missed anything? Wobien |
From: Wobien <roo...@pl...> - 2007-11-28 14:43:28
|
Hello Uwe, Thanks for your suggestion. I tried it, but i still get the same error. As it is a linker error i expect the problem to be in the linker settings, or in the version of libcomctrl32.a Wobien ----- Original Message ----- From: "Uwe Ingelfinger" <Uwe...@gm...> To: "'Wobien'" <roo...@pl...> Sent: Wednesday, November 28, 2007 3:24 PM Subject: AW: [Dev-C++] Using ListView As far as I remember, you have to define internetexplorer version by defining the _WIN32_IE flag before including commctrl.h: #ifdef __GNUC__ #define _WIN32_IE 0x0500 #endif #include <commctrl.h> -----Ursprüngliche Nachricht----- Von: dev...@li... [mailto:dev...@li...] Im Auftrag von Wobien Gesendet: Mittwoch, 28. November 2007 15:12 An: dev-cpp-users-list Betreff: [Dev-C++] Using ListView Hello, I would like to use the Windows control List View. MSDN gives me the following code snippet to prepare the use of the WC_LISTVIEW class: INITCOMMONCONTROLSEX icex; // Ensure that the common control DLL is loaded. icex.dwSize = sizeof(INITCOMMONCONTROLSEX); icex.dwICC = ICC_LISTVIEW_CLASSES; InitCommonControlsEx(&icex); I copied this into my program. Also, MSDN gives the following Function Information for InitCommomControlsEx : Minimum DLL Versioncomctl32.dll version 4.70 or later Header: commctrl.h Import library: comctl32.lib Minimum operating systems: Windows 2000, Windows NT 4.0 with Internet Explorer 3.0, Windows 98, Windows 95 with Internet Explorer 3.0 I included commctrl.h and added libcomctrl32 When compiling i get a linker error: undefined reference to InitCommonControlsEx@4 Is this a version problem? Or have i missed anything? Wobien ------------------------------------------------------------------------- SF.Net email is sponsored by: The Future of Linux Business White Paper >from Novell. From the desktop to the data center, Linux is going mainstream. Let it simplify your IT future. http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4 _______________________________________________ Dev-cpp-users mailing list Dev...@li... TO UNSUBSCRIBE: http://www23.brinkster.com/noicys/devcpp/ub.htm https://lists.sourceforge.net/lists/listinfo/dev-cpp-users |
From: Wobien <roo...@pl...> - 2007-11-28 16:03:04
|
Hallo Uwe, Ok, now it compiles! Thank you. Wobien ----- Original Message ----- From: "Uwe Ingelfinger" <Uwe...@gm...> To: "'Wobien'" <roo...@pl...> Sent: Wednesday, November 28, 2007 4:13 PM Subject: AW: [Dev-C++] Using ListView Hello Wobien, I've looked into one of my projects, I've used the lib comctl32 and not libcomctrl32 Uwe -----Ursprüngliche Nachricht----- Von: dev...@li... [mailto:dev...@li...] Im Auftrag von Wobien Gesendet: Mittwoch, 28. November 2007 15:43 An: Uwe...@gm... Cc: dev-cpp-users-list Betreff: Re: [Dev-C++] Using ListView Hello Uwe, Thanks for your suggestion. I tried it, but i still get the same error. As it is a linker error i expect the problem to be in the linker settings, or in the version of libcomctrl32.a Wobien ----- Original Message ----- From: "Uwe Ingelfinger" <Uwe...@gm...> To: "'Wobien'" <roo...@pl...> Sent: Wednesday, November 28, 2007 3:24 PM Subject: AW: [Dev-C++] Using ListView As far as I remember, you have to define internetexplorer version by defining the _WIN32_IE flag before including commctrl.h: #ifdef __GNUC__ #define _WIN32_IE 0x0500 #endif #include <commctrl.h> -----Ursprüngliche Nachricht----- Von: dev...@li... [mailto:dev...@li...] Im Auftrag von Wobien Gesendet: Mittwoch, 28. November 2007 15:12 An: dev-cpp-users-list Betreff: [Dev-C++] Using ListView Hello, I would like to use the Windows control List View. MSDN gives me the following code snippet to prepare the use of the WC_LISTVIEW class: INITCOMMONCONTROLSEX icex; // Ensure that the common control DLL is loaded. icex.dwSize = sizeof(INITCOMMONCONTROLSEX); icex.dwICC = ICC_LISTVIEW_CLASSES; InitCommonControlsEx(&icex); I copied this into my program. Also, MSDN gives the following Function Information for InitCommomControlsEx : Minimum DLL Versioncomctl32.dll version 4.70 or later Header: commctrl.h Import library: comctl32.lib Minimum operating systems: Windows 2000, Windows NT 4.0 with Internet Explorer 3.0, Windows 98, Windows 95 with Internet Explorer 3.0 I included commctrl.h and added libcomctrl32 When compiling i get a linker error: undefined reference to InitCommonControlsEx@4 Is this a version problem? Or have i missed anything? Wobien ------------------------------------------------------------------------- SF.Net email is sponsored by: The Future of Linux Business White Paper >>from Novell. From the desktop to the data center, Linux is going mainstream. Let it simplify your IT future. http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4 _______________________________________________ Dev-cpp-users mailing list Dev...@li... TO UNSUBSCRIBE: http://www23.brinkster.com/noicys/devcpp/ub.htm https://lists.sourceforge.net/lists/listinfo/dev-cpp-users ------------------------------------------------------------------------- SF.Net email is sponsored by: The Future of Linux Business White Paper >from Novell. From the desktop to the data center, Linux is going mainstream. Let it simplify your IT future. http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4 _______________________________________________ Dev-cpp-users mailing list Dev...@li... TO UNSUBSCRIBE: http://www23.brinkster.com/noicys/devcpp/ub.htm https://lists.sourceforge.net/lists/listinfo/dev-cpp-users |
From: Jessica C. <jes...@gm...> - 2007-11-28 16:31:26
|
Not a big problem, do these: (1) in the top of ur code, add "#define _WIN32_IE 0x0600" (2) in porject->porject options->parameters->linker, add c:\dev-cpp\lib\libcomctl32.a Then it should work fine. On Nov 28, 2007 9:11 AM, Wobien <roo...@pl...> wrote: > Hello, > I would like to use the Windows control List View. > MSDN gives me the following code snippet to prepare the use of the > WC_LISTVIEW class: > > INITCOMMONCONTROLSEX icex; > // Ensure that the common control DLL is loaded. > icex.dwSize = sizeof(INITCOMMONCONTROLSEX); > icex.dwICC = ICC_LISTVIEW_CLASSES; > InitCommonControlsEx(&icex); > > I copied this into my program. > > Also, MSDN gives the following Function Information for > InitCommomControlsEx > : > > Minimum DLL Versioncomctl32.dll version 4.70 or later > Header: commctrl.h > Import library: comctl32.lib > Minimum operating systems: Windows 2000, Windows NT 4.0 with Internet > Explorer 3.0, Windows 98, Windows 95 with Internet Explorer 3.0 > > I included commctrl.h and added libcomctrl32 > > When compiling i get a linker error: undefined reference to > InitCommonControlsEx@4 > > Is this a version problem? Or have i missed anything? > > Wobien > > > ------------------------------------------------------------------------- > SF.Net email is sponsored by: The Future of Linux Business White Paper > from Novell. From the desktop to the data center, Linux is going > mainstream. Let it simplify your IT future. > http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4 > _______________________________________________ > Dev-cpp-users mailing list > Dev...@li... > TO UNSUBSCRIBE: http://www23.brinkster.com/noicys/devcpp/ub.htm > https://lists.sourceforge.net/lists/listinfo/dev-cpp-users > |