|
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 |