Click here to Skip to main content
13,097,926 members (58,310 online)

C / C++ / MFC

 
AnswerRe: Changing Dialog Button Color at runTime Pin
manoranjan21-Nov-12 0:05
membermanoranjan21-Nov-12 0:05 
GeneralRe: Changing Dialog Button Color at runTime Pin
yogeshs21-Nov-12 0:37
memberyogeshs21-Nov-12 0:37 
GeneralRe: Changing Dialog Button Color at runTime Pin
manoranjan21-Nov-12 1:12
membermanoranjan21-Nov-12 1:12 
GeneralRe: Changing Dialog Button Color at runTime Pin
yogeshs21-Nov-12 18:56
memberyogeshs21-Nov-12 18:56 
GeneralRe: Changing Dialog Button Color at runTime Pin
manoranjan21-Nov-12 19:40
membermanoranjan21-Nov-12 19:40 
QuestionMinimize CDialog Problem Pin
yu-jian20-Nov-12 6:22
groupyu-jian20-Nov-12 6:22 
AnswerRe: Minimize CDialog Problem Pin
jeron120-Nov-12 6:31
memberjeron120-Nov-12 6:31 
QuestionRe: Minimize CDialog Problem Pin
Maximilien20-Nov-12 8:26
memberMaximilien20-Nov-12 8:26 
QuestionCheck if a character is lowercase and change to uppercase. Pin
MitchG92_2420-Nov-12 0:49
memberMitchG92_2420-Nov-12 0:49 
AnswerRe: Check if a character is lowercase and change to uppercase. Pin
MitchG92_2420-Nov-12 0:56
memberMitchG92_2420-Nov-12 0:56 
AnswerRe: Check if a character is lowercase and change to uppercase. Pin
sajeesh.c20-Nov-12 17:34
membersajeesh.c20-Nov-12 17:34 
GeneralRe: Check if a character is lowercase and change to uppercase. Pin
Richard MacCutchan20-Nov-12 21:31
mvpRichard MacCutchan20-Nov-12 21:31 
QuestionIs it possible to capture an HD video/ to generate videos in HD in C++/VC++/MFC.? Pin
mbatra3119-Nov-12 22:15
membermbatra3119-Nov-12 22:15 
QuestionProblem with string conversion Pin
HungryCPPDev19-Nov-12 19:08
memberHungryCPPDev19-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 Pin
Jochen Arndt19-Nov-12 21:40
memberJochen Arndt19-Nov-12 21:40 
GeneralRe: Problem with string conversion Pin
HungryCPPDev20-Nov-12 18:05
memberHungryCPPDev20-Nov-12 18:05 
GeneralRe: Problem with string conversion Pin
Jochen Arndt22-Nov-12 2:52
memberJochen Arndt22-Nov-12 2:52 
Questionencrypt and decrypt Pin
thandy mitchell19-Nov-12 6:24
memberthandy mitchell19-Nov-12 6:24 
AnswerRe: encrypt and decrypt Pin
Richard MacCutchan19-Nov-12 7:59
mvpRichard MacCutchan19-Nov-12 7:59 
AnswerRe: encrypt and decrypt Pin
CPallini19-Nov-12 11:36
mvpCPallini19-Nov-12 11:36 
Questionaccess excel data using c++ Pin
lakshmamma19-Nov-12 2:05
memberlakshmamma19-Nov-12 2:05 
AnswerRe: access excel data using c++ Pin
Flaviu219-Nov-12 2:14
memberFlaviu219-Nov-12 2:14 
AnswerRe: access excel data using c++ Pin
CPallini19-Nov-12 2:17
mvpCPallini19-Nov-12 2:17 
AnswerRe: access excel data using c++ Pin
Jochen Arndt19-Nov-12 2:26
memberJochen Arndt19-Nov-12 2:26 
QuestionMemory usage Pin
john563215-Nov-12 21:48
memberjohn563215-Nov-12 21:48 
AnswerRe: Memory usage Pin
Orjan Westin15-Nov-12 23:23
memberOrjan Westin15-Nov-12 23:23 
AnswerRe: Memory usage Pin
DavidCrow16-Nov-12 2:27
memberDavidCrow16-Nov-12 2:27 
AnswerRe: Memory usage Pin
Rolf Kristensen16-Nov-12 3:30
memberRolf Kristensen16-Nov-12 3:30 
AnswerRe: Memory usage Pin
Arun S J18-Nov-12 18:13
memberArun S J18-Nov-12 18:13 
QuestionSql server Database BackUp Pin
shibashish mohanty15-Nov-12 20:06
membershibashish mohanty15-Nov-12 20:06 
AnswerRe: Sql server Database BackUp Pin
Richard MacCutchan15-Nov-12 23:55
mvpRichard MacCutchan15-Nov-12 23:55 
AnswerRe: Sql server Database BackUp Pin
André Kraak16-Nov-12 0:48
memberAndré Kraak16-Nov-12 0:48 
QuestionNeed help compiling Pin
xLeonx15-Nov-12 8:51
memberxLeonx15-Nov-12 8:51 
AnswerRe: Need help compiling Pin
jeron115-Nov-12 9:51
memberjeron115-Nov-12 9:51 
QuestionRe: Need help compiling Pin
DavidCrow15-Nov-12 10:34
memberDavidCrow15-Nov-12 10:34 
QuestionRe: Need help compiling Pin
CPallini15-Nov-12 23:09
mvpCPallini15-Nov-12 23:09 
AnswerRe: Need help compiling Pin
xLeonx18-Nov-12 9:35
memberxLeonx18-Nov-12 9:35 
AnswerRe: Need help compiling Pin
Stephen Hewitt16-Nov-12 22:36
memberStephen Hewitt16-Nov-12 22:36 
GeneralRe: Need help compiling Pin
xLeonx18-Nov-12 9:31
memberxLeonx18-Nov-12 9:31 
GeneralRe: Need help compiling Pin
xLeonx18-Nov-12 9:33
memberxLeonx18-Nov-12 9:33 
AnswerRe: Need help compiling Pin
Arun S J18-Nov-12 18:15
memberArun S J18-Nov-12 18:15 
GeneralRe: Need help compiling Pin
xLeonx23-Nov-12 8:20
memberxLeonx23-Nov-12 8:20 
GeneralRe: Need help compiling Pin
Arun S J25-Nov-12 17:37
memberArun S J25-Nov-12 17:37 
NewsSoftware Engineer (C++) needed in Singapore!! Pin
darkxfire14-Nov-12 17:39
memberdarkxfire14-Nov-12 17:39 
GeneralRe: Software Engineer (C++) needed in Singapore!! Pin
Arun S J18-Nov-12 18:27
memberArun S J18-Nov-12 18:27 
QuestionI am Bemused about std::list<> Pin
yu-jian13-Nov-12 4:17
groupyu-jian13-Nov-12 4:17 
AnswerRe: I am Bemused about std::list<> Pin
Richard MacCutchan13-Nov-12 5:37
mvpRichard MacCutchan13-Nov-12 5:37 
GeneralRe: I am Bemused about std::list<> Pin
Stephen Hewitt13-Nov-12 6:03
memberStephen Hewitt13-Nov-12 6:03 
GeneralRe: I am Bemused about std::list<> Pin
yu-jian13-Nov-12 6:25
groupyu-jian13-Nov-12 6:25 
GeneralRe: I am Bemused about std::list<> Pin
Richard MacCutchan13-Nov-12 6:38
mvpRichard MacCutchan13-Nov-12 6: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.


Advertise | Privacy |
Web01 | 2.8.170813.1 | Last Updated 24 Aug 2017
Copyright © CodeProject, 1999-2017
All Rights Reserved. Terms of Service
Layout: fixed | fluid