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.
fixed in svn, not even needed to have the L for unicode, regular windows api, with regular english filename.Seth is right, remember that win32 haves usually ascii and unicode signatures.
Should it not be
hinstDll = LoadLibrary(_T("comctl32.dll"));
Per URL http://wiki.codeblocks.org/index.php?title=Unicode_Standards
Tim S
And?Should it not be
hinstDll = LoadLibrary(_T("comctl32.dll"));
Per URL http://wiki.codeblocks.org/index.php?title=Unicode_Standards
Tim S
No that is a wx macro..... The LoadLibrary function is a Windows API specific call. :)
And?Should it not be
hinstDll = LoadLibrary(_T("comctl32.dll"));
Per URL http://wiki.codeblocks.org/index.php?title=Unicode_Standards
Tim S
No that is a wx macro..... The LoadLibrary function is a Windows API specific call. :)
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dllproc/base/loadlibrary.asp
Implemented 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() ...