Click here to Skip to main content
16,006,001 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Answerwindbg to the rescue! Pin
Rob Caldecott4-Sep-06 6:58
Rob Caldecott4-Sep-06 6:58 
GeneralRe: windbg to the rescue! Pin
Waldermort4-Sep-06 7:03
Waldermort4-Sep-06 7:03 
Questionreplacing a string with a sub-string Pin
jon-804-Sep-06 6:29
professionaljon-804-Sep-06 6:29 
AnswerRe: replacing a string with a sub-string Pin
Graham Shanks4-Sep-06 12:28
Graham Shanks4-Sep-06 12:28 
Questionreduce the size of an array of chars.... Pin
jon-804-Sep-06 6:22
professionaljon-804-Sep-06 6:22 
AnswerRe: reduce the size of an array of chars.... Pin
Waldermort4-Sep-06 6:25
Waldermort4-Sep-06 6:25 
GeneralRe: reduce the size of an array of chars.... Pin
jon-804-Sep-06 6:32
professionaljon-804-Sep-06 6:32 
GeneralRe: reduce the size of an array of chars.... Pin
Waldermort4-Sep-06 6:43
Waldermort4-Sep-06 6:43 
jon_80 wrote:
I think the above line zero's the memory for l_Substring. I would like to remove what has not already been 'filled' within the function.


When you memset with '0', you are filling the array with NULL terminators, so after you add your characters one by one there will be a NULL at the end.

jon_80 wrote:
How do I add a NULL terminator btw?


After you have added the last character, increase the pointer and make it = '0' instead of adding a character.
GeneralRe: reduce the size of an array of chars.... Pin
jon-804-Sep-06 8:11
professionaljon-804-Sep-06 8:11 
QuestionControl handles Pin
Oliver1234-Sep-06 6:17
Oliver1234-Sep-06 6:17 
AnswerRe: Control handles Pin
Waldermort4-Sep-06 6:26
Waldermort4-Sep-06 6:26 
AnswerRe: Control handles Pin
gregdolley4-Sep-06 22:21
gregdolley4-Sep-06 22:21 
AnswerRe: Control handles Pin
Hamid_RT11-Sep-06 9:52
Hamid_RT11-Sep-06 9:52 
Questionscanning until the EOF Pin
Desmo164-Sep-06 6:15
Desmo164-Sep-06 6:15 
AnswerRe: scanning until the EOF Pin
Waldermort4-Sep-06 6:30
Waldermort4-Sep-06 6:30 
GeneralRe: scanning until the EOF Pin
Desmo164-Sep-06 6:40
Desmo164-Sep-06 6:40 
GeneralRe: scanning until the EOF Pin
Waldermort4-Sep-06 6:49
Waldermort4-Sep-06 6:49 
Questionneed help Pin
amzeus4-Sep-06 6:04
amzeus4-Sep-06 6:04 
AnswerRe: need help Pin
Cedric Moonen4-Sep-06 6:12
Cedric Moonen4-Sep-06 6:12 
AnswerRe: need help Pin
Hamid_RT4-Sep-06 22:32
Hamid_RT4-Sep-06 22:32 
QuestionSir,How Can Find or See WinMain Function in Simple MFC Application ? Pin
CodeVarma4-Sep-06 5:54
CodeVarma4-Sep-06 5:54 
AnswerRe: Sir,How Can Find or See WinMain Function in Simple MFC Application ? Pin
Hamid_RT11-Sep-06 9:46
Hamid_RT11-Sep-06 9:46 
QuestionAnimation of bitmaps Pin
Fernando A. Gomez F.4-Sep-06 5:40
Fernando A. Gomez F.4-Sep-06 5:40 
AnswerRe: Animation of bitmaps Pin
Waldermort4-Sep-06 6:22
Waldermort4-Sep-06 6:22 
AnswerRe: Animation of bitmaps Pin
Hamid_RT4-Sep-06 22:30
Hamid_RT4-Sep-06 22:30 

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.