Click here to Skip to main content
15,891,597 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: wcstombs is not working Pin
Rakesh55-Aug-09 0:04
Rakesh55-Aug-09 0:04 
GeneralRe: wcstombs is not working Pin
Souldrift5-Aug-09 0:13
Souldrift5-Aug-09 0:13 
GeneralRe: wcstombs is not working Pin
Rakesh55-Aug-09 0:53
Rakesh55-Aug-09 0:53 
GeneralRe: wcstombs is not working Pin
Souldrift5-Aug-09 2:13
Souldrift5-Aug-09 2:13 
AnswerRe: wcstombs is not working Pin
CPallini4-Aug-09 23:55
mveCPallini4-Aug-09 23:55 
GeneralRe: wcstombs is not working Pin
n1pabs5-Aug-09 5:03
n1pabs5-Aug-09 5:03 
QuestionRe: wcstombs is not working Pin
David Crow5-Aug-09 3:00
David Crow5-Aug-09 3:00 
AnswerRe: wcstombs is not working Pin
Nemanja Trifunovic5-Aug-09 8:35
Nemanja Trifunovic5-Aug-09 8:35 
First of all, using CP_ACP means you don't really have a control of the target code page - it depends on the users's settings. Sometimes it is exactly what you want, sometimes it is not.

Anyway, if we assume that your system locale is Windows CP 1252 and you have some Greek characters in Text, your code will try to convert Greek characters to CP1252 and because there is no mapping between the two scripts, you are going to get replacement characters (?) instead.

To convert Greek text from const wchar* value to char value to char*, you'll need to use CP1253 (not sure if I spelled the constant correctly) instead of CP_AP.

I hope it make sense.


QuestionCan we change the path of dlls in target directory? Pin
Nilesh Hamane4-Aug-09 22:56
Nilesh Hamane4-Aug-09 22:56 
AnswerRe: Can we change the path of dlls in target directory? Pin
sashoalm5-Aug-09 2:36
sashoalm5-Aug-09 2:36 
GeneralRe: Can we change the path of dlls in target directory? Pin
Nilesh Hamane5-Aug-09 22:46
Nilesh Hamane5-Aug-09 22:46 
GeneralRe: Can we change the path of dlls in target directory? Pin
sashoalm5-Aug-09 23:51
sashoalm5-Aug-09 23:51 
QuestionConverting ANSI to UNICODE Pin
bhanu_reddy094-Aug-09 21:37
bhanu_reddy094-Aug-09 21:37 
QuestionRe: Converting ANSI to UNICODE Pin
CPallini4-Aug-09 22:06
mveCPallini4-Aug-09 22:06 
AnswerRe: Converting ANSI to UNICODE Pin
Michael Dunn4-Aug-09 22:23
sitebuilderMichael Dunn4-Aug-09 22:23 
GeneralRe: Converting ANSI to UNICODE Pin
bhanu_reddy094-Aug-09 22:34
bhanu_reddy094-Aug-09 22:34 
GeneralRe: Converting ANSI to UNICODE Pin
CPallini4-Aug-09 23:47
mveCPallini4-Aug-09 23:47 
GeneralRe: Converting ANSI to UNICODE Pin
Souldrift4-Aug-09 22:38
Souldrift4-Aug-09 22:38 
GeneralRe: Converting ANSI to UNICODE Pin
bhanu_reddy094-Aug-09 22:42
bhanu_reddy094-Aug-09 22:42 
GeneralRe: Converting ANSI to UNICODE Pin
Souldrift4-Aug-09 23:28
Souldrift4-Aug-09 23:28 
GeneralRe: Converting ANSI to UNICODE Pin
bhanu_85095-Aug-09 2:50
bhanu_85095-Aug-09 2:50 
Question_MailItemPtr Pin
john56324-Aug-09 21:15
john56324-Aug-09 21:15 
AnswerRe: _MailItemPtr Pin
Souldrift4-Aug-09 23:57
Souldrift4-Aug-09 23:57 
Questionmemcpy and buffer concatenation Pin
Madhu_Rani4-Aug-09 21:10
Madhu_Rani4-Aug-09 21:10 
AnswerRe: memcpy and buffer concatenation Pin
CPallini4-Aug-09 21:20
mveCPallini4-Aug-09 21:20 

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.