Developer forums (C::B DEVELOPMENT STRICTLY!) > Development
Rev 2954 ANSI mode
sethjackson:
Hey in this revision C::B won't compile.
In sdk\globals.cpp line 601
--- Code: (cpp) ---hinstDll = LoadLibrary(L"comctl32.dll");
--- End code ---
It works if you take the L away of course. ;)
--- Code: (diff) ---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;
--- End code ---
killerbot:
fixed in svn, not even needed to have the L for unicode, regular windows api, with regular english filename.
sethjackson:
--- Quote from: killerbot on September 05, 2006, 10:08:58 pm ---fixed in svn, not even needed to have the L for unicode, regular windows api, with regular english filename.
--- End quote ---
Well I hate to disagree with you, but try compiling it. ;)
No worky. ANSI mode works, but not Unicode.....
sdk\globals.cpp:601: error: cannot convert `const char*' to `const WCHAR*' for argument `1' to `HINSTANCE__* LoadLibrary(const WCHAR*)'
takeshimiya:
--- Quote from: killerbot on September 05, 2006, 10:08:58 pm ---fixed in svn, not even needed to have the L for unicode, regular windows api, with regular english filename.
--- End quote ---
Seth is right, remember that win32 haves usually ascii and unicode signatures.
stahta01:
Should it not be
hinstDll = LoadLibrary(_T("comctl32.dll"));
Per URL http://wiki.codeblocks.org/index.php?title=Unicode_Standards
Tim S
Navigation
[0] Message Index
[#] Next page
Go to full version