Click here to Skip to main content
15,916,462 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Heap corruption problem after AfxBeginThread? Pin
Sivaraman Dhamodharan22-Nov-12 22:13
Sivaraman Dhamodharan22-Nov-12 22:13 
AnswerRe: Heap corruption problem after AfxBeginThread? Pin
Richard MacCutchan22-Nov-12 23:40
mveRichard MacCutchan22-Nov-12 23:40 
GeneralRe: Heap corruption problem after AfxBeginThread? Pin
bosfan22-Nov-12 23:44
bosfan22-Nov-12 23:44 
AnswerRe: Heap corruption problem after AfxBeginThread? Pin
WebMaster23-Nov-12 4:49
WebMaster23-Nov-12 4:49 
AnswerRe: Heap corruption problem after AfxBeginThread? Pin
Stephen Hewitt25-Nov-12 7:04
Stephen Hewitt25-Nov-12 7:04 
QuestionWhat are the steps required, i will connect to the SQL named instance server using the "CDatabase::OpenEx" by using the DNS Name? Pin
lucky_122122-Nov-12 0:41
lucky_122122-Nov-12 0:41 
AnswerRe: What are the steps required, i will connect to the SQL named instance server using the "CDatabase::OpenEx" by using the DNS Name? Pin
Richard MacCutchan22-Nov-12 3:38
mveRichard MacCutchan22-Nov-12 3:38 
QuestionChanging Dialog Button Color at runTime Pin
002comp20-Nov-12 23:07
002comp20-Nov-12 23:07 
AnswerRe: Changing Dialog Button Color at runTime Pin
manoranjan21-Nov-12 0:05
manoranjan21-Nov-12 0:05 
GeneralRe: Changing Dialog Button Color at runTime Pin
002comp21-Nov-12 0:37
002comp21-Nov-12 0:37 
GeneralRe: Changing Dialog Button Color at runTime Pin
manoranjan21-Nov-12 1:12
manoranjan21-Nov-12 1:12 
GeneralRe: Changing Dialog Button Color at runTime Pin
002comp21-Nov-12 18:56
002comp21-Nov-12 18:56 
GeneralRe: Changing Dialog Button Color at runTime Pin
manoranjan21-Nov-12 19:40
manoranjan21-Nov-12 19:40 
QuestionPng Image button problem. Pin
yu-jian20-Nov-12 6:53
yu-jian20-Nov-12 6:53 
QuestionMinimize CDialog Problem Pin
yu-jian20-Nov-12 6:22
yu-jian20-Nov-12 6:22 
AnswerRe: Minimize CDialog Problem Pin
jeron120-Nov-12 6:31
jeron120-Nov-12 6:31 
QuestionRe: Minimize CDialog Problem Pin
Maximilien20-Nov-12 8:26
Maximilien20-Nov-12 8:26 
QuestionCheck if a character is lowercase and change to uppercase. Pin
MitchG92_2420-Nov-12 0:49
MitchG92_2420-Nov-12 0:49 
AnswerRe: Check if a character is lowercase and change to uppercase. Pin
MitchG92_2420-Nov-12 0:56
MitchG92_2420-Nov-12 0:56 
AnswerRe: Check if a character is lowercase and change to uppercase. Pin
Sajeesh Payolam20-Nov-12 17:34
Sajeesh Payolam20-Nov-12 17:34 
GeneralRe: Check if a character is lowercase and change to uppercase. Pin
Richard MacCutchan20-Nov-12 21:31
mveRichard 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
mbatra3119-Nov-12 22:15 
QuestionProblem with string conversion Pin
HungryCPPDev19-Nov-12 19:08
HungryCPPDev19-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
professionalJochen Arndt19-Nov-12 21:40 
GeneralRe: Problem with string conversion Pin
HungryCPPDev20-Nov-12 18:05
HungryCPPDev20-Nov-12 18:05 

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.