Click here to Skip to main content
15,890,438 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: win32 console application using MFC Pin
vemasani12-Nov-08 17:05
vemasani12-Nov-08 17:05 
GeneralRe: win32 console application using MFC Pin
David Crow13-Nov-08 2:32
David Crow13-Nov-08 2:32 
AnswerRe: win32 console application using MFC Pin
CPallini12-Nov-08 0:57
mveCPallini12-Nov-08 0:57 
Questionstd::wstring real content Pin
Ahmed Charfeddine12-Nov-08 0:33
Ahmed Charfeddine12-Nov-08 0:33 
AnswerRe: std::wstring real content Pin
CPallini12-Nov-08 0:49
mveCPallini12-Nov-08 0:49 
GeneralRe: std::wstring real content Pin
Ahmed Charfeddine12-Nov-08 3:38
Ahmed Charfeddine12-Nov-08 3:38 
QuestionRe: std::wstring real content Pin
CPallini12-Nov-08 3:42
mveCPallini12-Nov-08 3:42 
AnswerRe: std::wstring real content Pin
Ahmed Charfeddine12-Nov-08 5:19
Ahmed Charfeddine12-Nov-08 5:19 
This is how supposing localName is of type XMLString (ie std::wstring) which I want to display :

CString str;
str.Format(_T("%s"),localName.c_str());
AfxMessageBox(str);

(or even AfxMessageBox(localName.c_str()); )


my application is Unicode so the %s will cause the paramter localName in ::Format to be interpreted as widechars.

neverthless I get unregnizable things in screen.


Neverthless I now discover that when I put %S then I can understand what is displayed.
Since %S in context of Unicode app means to interprete the param as simple chars then my conclusion
is that the third party library is no doing anything like actually formatting results in wide chars.
I'm not sure of my conclusion..but the following is taken from MSDN regarding the printf :

[
S
String
When used with printf functions, specifies a wide-character string; when used with wprintf functions, specifies a single-byte–character string. Characters are printed up to the first null character or until the precision value is reached.
]


Anyway..well Poco..well..

"The Awaited Saviour", Mohammed Baqir Al Sadr

QuestionTransparent Dialog but not control.. Pin
gothic_coder12-Nov-08 0:27
gothic_coder12-Nov-08 0:27 
AnswerRe: Transparent Dialog but not control.. Pin
AtomAnt12-Nov-08 3:53
AtomAnt12-Nov-08 3:53 
AnswerRe: Transparent Dialog but not control.. Pin
Hamid_RT12-Nov-08 6:00
Hamid_RT12-Nov-08 6:00 
GeneralRe: Transparent Dialog but not control.. Pin
gothic_coder12-Nov-08 18:49
gothic_coder12-Nov-08 18:49 
GeneralRe: Transparent Dialog but not control.. Pin
Hamid_RT12-Nov-08 19:38
Hamid_RT12-Nov-08 19:38 
GeneralRe: Transparent Dialog but not control.. Pin
gothic_coder12-Nov-08 22:08
gothic_coder12-Nov-08 22:08 
GeneralRe: Transparent Dialog but not control.. Pin
Hamid_RT13-Nov-08 9:08
Hamid_RT13-Nov-08 9:08 
GeneralRe: Transparent Dialog but not control.. Pin
gothic_coder13-Nov-08 19:34
gothic_coder13-Nov-08 19:34 
QuestionBinary Search program Pin
bishshoy00711-Nov-08 23:21
bishshoy00711-Nov-08 23:21 
QuestionRe: Binary Search program Pin
CPallini11-Nov-08 23:38
mveCPallini11-Nov-08 23:38 
AnswerRe: Binary Search program Pin
Randor 11-Nov-08 23:59
professional Randor 11-Nov-08 23:59 
AnswerRe: Binary Search program Pin
David Crow12-Nov-08 3:09
David Crow12-Nov-08 3:09 
QuestionNeed cximagecrt.dll/cximagecrtd.dll Pin
Balaram_Neni11-Nov-08 23:20
Balaram_Neni11-Nov-08 23:20 
AnswerRe: Need cximagecrt.dll/cximagecrtd.dll Pin
enhzflep12-Nov-08 0:36
enhzflep12-Nov-08 0:36 
AnswerRe: Need cximagecrt.dll/cximagecrtd.dll Pin
Hamid_RT12-Nov-08 6:00
Hamid_RT12-Nov-08 6:00 
QuestionRe: Need cximagecrt.dll/cximagecrtd.dll Pin
Mark Salsbery12-Nov-08 9:16
Mark Salsbery12-Nov-08 9:16 
AnswerRe: Need cximagecrt.dll/cximagecrtd.dll Pin
Hamid_RT12-Nov-08 19:38
Hamid_RT12-Nov-08 19:38 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.