When registered with our forums, feel free to send a "here I am" post here to differ human beings from SPAM bots.
hinstDll = LoadLibrary(L"comctl32.dll");
Index: src/sdk/globals.cpp===================================================================--- src/sdk/globals.cpp (revision 2954)+++ src/sdk/globals.cpp (working copy)@@ -598,7 +598,11 @@ bool result = false; HINSTANCE hinstDll; DWORD dwVersion = 0;+#if wxUSE_UNICODE hinstDll = LoadLibrary(L"comctl32.dll");+#else+ hinstDll = LoadLibrary("comctl32.dll");+#endif if(hinstDll) { DLLGETVERSIONPROC pDllGetVersion;
fixed in svn, not even needed to have the L for unicode, regular windows api, with regular english filename.
Should it not behinstDll = LoadLibrary(_T("comctl32.dll"));Per URL http://wiki.codeblocks.org/index.php?title=Unicode_StandardsTim S
Quote from: stahta01 on September 05, 2006, 10:42:48 pmShould it not behinstDll = LoadLibrary(_T("comctl32.dll"));Per URL http://wiki.codeblocks.org/index.php?title=Unicode_StandardsTim SNo that is a wx macro..... The LoadLibrary function is a Windows API specific call.
Quote from: sethjackson on September 05, 2006, 10:44:25 pmQuote from: stahta01 on September 05, 2006, 10:42:48 pmShould it not behinstDll = LoadLibrary(_T("comctl32.dll"));Per URL http://wiki.codeblocks.org/index.php?title=Unicode_StandardsTim SNo that is a wx macro..... The LoadLibrary function is a Windows API specific call. And?http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dllproc/base/loadlibrary.aspImplemented as LoadLibraryW (Unicode) and LoadLibraryA (ANSI).And BTW, _T() is not only a wx macro, it is commonly used in win32 & mfc programming and it serves for the same purpose.
_T() version committed, strange that it's not needed then for GetProcAddress() ...