Click here to Skip to main content
       

C / C++ / MFC

 
AnswerRe: Minimize CDialog Problem Pinmemberjeron120-Nov-12 6:31 
QuestionRe: Minimize CDialog Problem PinmemberMaximilien20-Nov-12 8:26 
QuestionCheck if a character is lowercase and change to uppercase. PinmemberMitchG92_2420-Nov-12 0:49 
AnswerRe: Check if a character is lowercase and change to uppercase. PinmemberMitchG92_2420-Nov-12 0:56 
AnswerRe: Check if a character is lowercase and change to uppercase. Pinmembersajeesh.c20-Nov-12 17:34 
GeneralRe: Check if a character is lowercase and change to uppercase. PinmvpRichard MacCutchan20-Nov-12 21:31 
QuestionIs it possible to capture an HD video/ to generate videos in HD in C++/VC++/MFC.? Pinmembermbatra3119-Nov-12 22:15 
QuestionProblem with string conversion PinmemberHungryCPPDev19-Nov-12 19:08 
Hi All,
I am using below code to convert CString to char* and again back to CString. I am using 3rd party code which takes char* only.
 
const size_t newsizew = (str.GetLength()+1)*2;
char *nstringw = new char[newsizew];
size_t convertedCharsw = 0;
wcstombs_s(&convertedCharsw, nstringw, newsizew, str.GetBuffer(), newsizew /*_TRUNCATE*/ );
AfxMessageBox(CString(CA2T(nstringw)));
 
The conversion is working fine when content of str is in english. But this is not working properly when str is in other language.
Can anyone suggest me how to make it work even for other languages.
 
Thanks in advance.
AnswerRe: Problem with string conversion PinmemberJochen Arndt19-Nov-12 21:40 
GeneralRe: Problem with string conversion [modified] PinmemberHungryCPPDev20-Nov-12 18:05 
GeneralRe: Problem with string conversion PinmemberJochen Arndt22-Nov-12 2:52 
QuestionHow to set the alignment of items of CListCtrl Pinmemberrahul.kulshreshtha19-Nov-12 16:43 
AnswerRe: How to set the alignment of items of CListCtrl PinmvpRichard MacCutchan19-Nov-12 22:50 
GeneralRe: How to set the alignment of items of CListCtrl Pinmemberrahul.kulshreshtha19-Nov-12 23:22 
GeneralRe: How to set the alignment of items of CListCtrl PinmvpRichard MacCutchan20-Nov-12 0:02 
GeneralRe: How to set the alignment of items of CListCtrl Pinmemberrahul.kulshreshtha20-Nov-12 16:30 
GeneralRe: How to set the alignment of items of CListCtrl PinmvpRichard MacCutchan20-Nov-12 21:17 
QuestionLinked Lists and unique_ptr's PinmemberTom Moore19-Nov-12 7:29 
AnswerRe: Linked Lists and unique_ptr's [modified] PinmemberEugen Podsypalnikov19-Nov-12 10:50 
AnswerRe: Linked Lists and unique_ptr's PinmemberChris Meech19-Nov-12 14:04 
Questionencrypt and decrypt Pinmemberthandy mitchell19-Nov-12 6:24 
AnswerRe: encrypt and decrypt PinmvpRichard MacCutchan19-Nov-12 7:59 
AnswerRe: encrypt and decrypt PinmvpCPallini19-Nov-12 11:36 
Questionaccess excel data using c++ Pinmemberlakshmamma19-Nov-12 2:05 
AnswerRe: access excel data using c++ PinmemberFlaviu219-Nov-12 2:14 

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

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


Advertise | Privacy | Mobile
Web02 | 2.8.141015.1 | Last Updated 22 Oct 2014
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid