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