In Multibyte character set, what will be printed for the below code?
a) "Windows"Code:MessageBox(NULL, (LPCTSTR)L"Windows", NULL, MB_OK)
b) "E" "W"
c) "Error" "Windows"
d) "Error" "W"
In Multibyte character set, what will be printed for the below code?
a) "Windows"Code:MessageBox(NULL, (LPCTSTR)L"Windows", NULL, MB_OK)
b) "E" "W"
c) "Error" "Windows"
d) "Error" "W"
What do you mean by "In Multibyte character set"?
Unless you're clear on what you mean by that, your question is meaningless.
no entender
multibyte characters (sequence of one or more bytes)
Help - IBM AIX Compilers
Unicode and Multibyte Character Set (MBCS) Support
what do you think would be answer here?
Check also Announcements - General Programming Boards
Niara
since prefix L represents unicode string here....but for muticharacter set, it will give error..am i correct?
MING-W compiler:
#include <tchar.h>
...
...
#define _UNICODE
_T("World"); // L"World" -> wchar_t
#undef _UNICODE
_T("World"); // "World" -> char
Visual C++ compiler:
http://msdn.microsoft.com/en-us/library/se784sk6.aspx
Last edited by Joose; 03-17-2013 at 10:50 PM.