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