|
|
MessageBox(NULL, _T("GOOD"), _T("NOTE"), MB_OK);
h9uest wrote: |
---|
Things start to get logically wrong (here's my confusion): if MessageBox() is expecting a pointer to unicode characters AND "GOOD" is actually represented in unicode, the compiler should NOT give me an error. |
|
|
|
|
|
|
if MessageBox() is expecting a pointer to unicode characters AND "GOOD" is actually represented in unicode, the compiler should NOT give me an error. |
I believe the real confusion lies in another workaround approach to this problem: i.e. setting the "character set" field in (Project->property->configuration property) of visual studio. |
If you set the project setting such that multi-byte character set is used, it seems that char strings are automatically treated as tchar string when necessary. |
if MessageBox() is expecting a pointer to unicode characters AND "GOOD" is actually represented in unicode, the compiler should NOT give me an error. |
Do you imply that the string "GOOD" takes one byte per character (i.e. char) regardless of my project setting? |
If that's the case, then what is the "unicode/multi-byte" project setting for? |