Click here to Skip to main content
16,004,944 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Changing menu background color (Win32) Pin
Anonymous21-Mar-03 6:59
Anonymous21-Mar-03 6:59 
GeneralRe: Changing menu background color (Win32) Pin
Big Art21-Mar-03 10:46
Big Art21-Mar-03 10:46 
GeneralSSL Client for desktop Windows Pin
Matthew Fleming19-Mar-03 8:11
Matthew Fleming19-Mar-03 8:11 
GeneralRe: SSL Client for desktop Windows Pin
geo_m19-Mar-03 10:29
geo_m19-Mar-03 10:29 
GeneralWhy this is different? (CString copying over pszTitle)... Pin
Joan M19-Mar-03 7:47
professionalJoan M19-Mar-03 7:47 
GeneralRe: Why this is different? (CString copying over pszTitle)... Pin
Tim Smith19-Mar-03 8:02
Tim Smith19-Mar-03 8:02 
GeneralRe: Why this is different? (CString copying over pszTitle)... Pin
Joan M19-Mar-03 8:07
professionalJoan M19-Mar-03 8:07 
GeneralRe: Why this is different? (CString copying over pszTitle)... Pin
David Spain24-Mar-03 12:36
David Spain24-Mar-03 12:36 
You would have to find the length of the string you are copying, then allocate a character array on the heap with length + 1 size, do a memset to set this new memory to 0, do a memcpy from the CString's psz pointer to this new memory, then set the array psz to be the new pointer. That way the memory will always be there in the array psz. Just be sure to do a delete [] on this array psz when this array is no longer needed, or will get a memory leak. (The memset to 0 may not be needed, it may be done automatically when call new.)

David Spain
GeneralLoad the resource by his name Pin
Eugene Pustovoyt19-Mar-03 7:34
Eugene Pustovoyt19-Mar-03 7:34 
GeneralRe: Load the resource by his name Pin
berndg19-Mar-03 7:45
berndg19-Mar-03 7:45 
GeneralRe: Load the resource by his name Pin
georgiek5019-Mar-03 8:14
georgiek5019-Mar-03 8:14 
QuestionWhere do I find....? Pin
JohnnyG19-Mar-03 7:25
JohnnyG19-Mar-03 7:25 
AnswerRe: Where do I find....? Pin
Eugene Pustovoyt19-Mar-03 7:41
Eugene Pustovoyt19-Mar-03 7:41 
GeneralRe: Where do I find....? Pin
JohnnyG19-Mar-03 8:11
JohnnyG19-Mar-03 8:11 
QuestionSyncronizing thread destruction? Pin
clintsinger19-Mar-03 7:10
clintsinger19-Mar-03 7:10 
AnswerRe: Syncronizing thread destruction? Pin
Neville Franks19-Mar-03 8:51
Neville Franks19-Mar-03 8:51 
AnswerRe: Syncronizing thread destruction? Pin
valikac19-Mar-03 12:10
valikac19-Mar-03 12:10 
GeneralRe: Syncronizing thread destruction? Pin
clintsinger21-Mar-03 4:28
clintsinger21-Mar-03 4:28 
GeneralCompareItem Pin
Anthony988719-Mar-03 5:33
Anthony988719-Mar-03 5:33 
GeneralRe: CompareItem Pin
Chris Losinger19-Mar-03 5:46
professionalChris Losinger19-Mar-03 5:46 
Questionmfc installation dependencies??? Pin
work_to_live19-Mar-03 5:02
work_to_live19-Mar-03 5:02 
AnswerRe: mfc installation dependencies??? Pin
Nish Nishant19-Mar-03 5:37
sitebuilderNish Nishant19-Mar-03 5:37 
AnswerRe: mfc installation dependencies??? Pin
Jerry Dennany19-Mar-03 5:45
Jerry Dennany19-Mar-03 5:45 
GeneralRe: mfc installation dependencies??? Pin
work_to_live19-Mar-03 8:31
work_to_live19-Mar-03 8:31 
GeneralRe: mfc installation dependencies??? Pin
work_to_live19-Mar-03 8:33
work_to_live19-Mar-03 8:33 

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.