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

C / C++ / MFC

 
GeneralRe: Showing log messages from threads into a common ListBox Pin
Rage17-Nov-06 4:15
professionalRage17-Nov-06 4:15 
AnswerRe: Showing log messages from threads into a common ListBox Pin
Waldermort17-Nov-06 0:32
Waldermort17-Nov-06 0:32 
GeneralRe: Showing log messages from threads into a common ListBox Pin
Cyber Friend17-Nov-06 1:00
Cyber Friend17-Nov-06 1:00 
AnswerRe: Showing log messages from threads into a common ListBox Pin
David Crow17-Nov-06 3:15
David Crow17-Nov-06 3:15 
QuestionString Problem..... Pin
Programm3r17-Nov-06 0:12
Programm3r17-Nov-06 0:12 
AnswerRe: String Problem..... Pin
Rage17-Nov-06 0:16
professionalRage17-Nov-06 0:16 
GeneralRe: String Problem..... Pin
Programm3r17-Nov-06 0:33
Programm3r17-Nov-06 0:33 
AnswerRe: String Problem..... Pin
Roger Stoltz17-Nov-06 0:23
Roger Stoltz17-Nov-06 0:23 
Pasted from MSDN:
"The strncpy function copies the initial count characters of strSource to strDest and returns strDest. If count is less than or equal to the length of strSource, a null character is not appended automatically to the copied string."

You have to terminate the string yourself.
Rage suggested one way to it to be absolutely sure. Another way is to place a '\0' at the correct position, i.e. at the end of the string if you know where that is.

--
Roger


"It's supposed to be hard, otherwise anybody could do it!" - selfquote

"No one remembers a coward!" - Jan Elfström 1998
"...but everyone remembers an idiot!" - my lawyer 2005 when heard of Jan's saying above

GeneralRe: String Problem..... Pin
Programm3r17-Nov-06 0:35
Programm3r17-Nov-06 0:35 
QuestionHow to cast const char * to unsigned char * ? Pin
Mr.Brainley16-Nov-06 23:47
Mr.Brainley16-Nov-06 23:47 
AnswerRe: How to cast const char * to unsigned char * ? Pin
toxcct16-Nov-06 23:56
toxcct16-Nov-06 23:56 
GeneralRe: How to cast const char * to unsigned char * ? Pin
Mr.Brainley17-Nov-06 0:00
Mr.Brainley17-Nov-06 0:00 
GeneralRe: How to cast const char * to unsigned char * ? Pin
toxcct17-Nov-06 0:02
toxcct17-Nov-06 0:02 
GeneralRe: How to cast const char * to unsigned char * ? Pin
Roger Stoltz17-Nov-06 0:09
Roger Stoltz17-Nov-06 0:09 
AnswerRe: How to cast const char * to unsigned char * ? Pin
Christian Graus17-Nov-06 0:09
protectorChristian Graus17-Nov-06 0:09 
QuestionReading Binary Data from Registry ? Pin
Sakthiu16-Nov-06 23:39
Sakthiu16-Nov-06 23:39 
AnswerRe: Reading Binary Data from Registry ? Pin
Christian Graus16-Nov-06 23:44
protectorChristian Graus16-Nov-06 23:44 
AnswerRe: Reading Binary Data from Registry ? Pin
Rajesh R Subramanian16-Nov-06 23:55
professionalRajesh R Subramanian16-Nov-06 23:55 
AnswerRe: Reading Binary Data from Registry ? Pin
David Crow17-Nov-06 3:29
David Crow17-Nov-06 3:29 
AnswerRe: Reading Binary Data from Registry ? Pin
Hamid_RT17-Nov-06 7:46
Hamid_RT17-Nov-06 7:46 
QuestionHow to build a debugger Pin
ThianSeng16-Nov-06 23:31
ThianSeng16-Nov-06 23:31 
AnswerRe: How to build a debugger Pin
prasad_som17-Nov-06 1:01
prasad_som17-Nov-06 1:01 
QuestionCan U plz help me InstallShield Problem Pin
Jeeva Mary Varghese16-Nov-06 23:22
Jeeva Mary Varghese16-Nov-06 23:22 
AnswerRe: Can U plz help me InstallShield Problem Pin
Rage17-Nov-06 0:21
professionalRage17-Nov-06 0:21 
QuestionResize a Control inside a CSplitterWnd? Pin
Franken16-Nov-06 22:44
Franken16-Nov-06 22:44 

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.