Developer forums (C::B DEVELOPMENT STRICTLY!) > Development
Rev 2954 ANSI mode
sethjackson:
--- Quote from: stahta01 on September 05, 2006, 10:42:48 pm ---Should it not be
hinstDll = LoadLibrary(_T("comctl32.dll"));
Per URL http://wiki.codeblocks.org/index.php?title=Unicode_Standards
Tim S
--- End quote ---
No that is a wx macro..... The LoadLibrary function is a Windows API specific call. :)
takeshimiya:
--- Quote from: sethjackson on September 05, 2006, 10:44:25 pm ---
--- Quote from: stahta01 on September 05, 2006, 10:42:48 pm ---Should it not be
hinstDll = LoadLibrary(_T("comctl32.dll"));
Per URL http://wiki.codeblocks.org/index.php?title=Unicode_Standards
Tim S
--- End quote ---
No that is a wx macro..... The LoadLibrary function is a Windows API specific call. :)
--- End quote ---
And?
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dllproc/base/loadlibrary.asp
"Implemented as LoadLibraryW (Unicode) and LoadLibraryA (ANSI). Note that Unicode support on Windows Me/98/95 requires Microsoft Layer for Unicode."
And BTW, _T() is not only a wx macro, it is commonly used in win32 & mfc programming and it serves for the same purpose.
sethjackson:
--- Quote from: Takeshi Miya on September 05, 2006, 10:58:24 pm ---
--- Quote from: sethjackson on September 05, 2006, 10:44:25 pm ---
--- Quote from: stahta01 on September 05, 2006, 10:42:48 pm ---Should it not be
hinstDll = LoadLibrary(_T("comctl32.dll"));
Per URL http://wiki.codeblocks.org/index.php?title=Unicode_Standards
Tim S
--- End quote ---
No that is a wx macro..... The LoadLibrary function is a Windows API specific call. :)
--- End quote ---
And?
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.
--- End quote ---
Right the Windows API have two versions normallly. A unicode, and a ANSI. Anyways I thought that _T() was wx only. So I thought that it wouldn't work for a Windows API call.
I stand corrected. :oops:
killerbot:
_T() version committed, strange that it's not needed then for GetProcAddress() ...
sethjackson:
--- Quote from: killerbot on September 05, 2006, 11:08:03 pm ---_T() version committed, strange that it's not needed then for GetProcAddress() ...
--- End quote ---
Well at the risk of being wrong again I believe it is because that function is not implemented as Unicode.
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dllproc/base/getprocaddress.asp
Navigation
[0] Message Index
[*] Previous page
Go to full version