Click here to Skip to main content
15,901,205 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Stack Overflow, possible cause? Pin
Christian Graus4-Mar-06 5:13
protectorChristian Graus4-Mar-06 5:13 
GeneralRe: Stack Overflow, possible cause? Pin
Waldermort4-Mar-06 5:33
Waldermort4-Mar-06 5:33 
GeneralI FOUND IT!!! Pin
Waldermort4-Mar-06 7:57
Waldermort4-Mar-06 7:57 
GeneralRe: I FOUND IT!!! Pin
John R. Shaw4-Mar-06 15:51
John R. Shaw4-Mar-06 15:51 
GeneralRe: I FOUND IT!!! Pin
Waldermort4-Mar-06 21:08
Waldermort4-Mar-06 21:08 
GeneralRe: I FOUND IT!!! Pin
John R. Shaw5-Mar-06 14:21
John R. Shaw5-Mar-06 14:21 
Questionmemcat() Pin
chaitanya224-Mar-06 3:44
chaitanya224-Mar-06 3:44 
AnswerRe: memcat() Pin
Gary R. Wheeler4-Mar-06 4:28
Gary R. Wheeler4-Mar-06 4:28 
There isn't a memcat() function that corresponds to the strcat() function. If you think about it, a 'memcat' function doesn't make sense. strcat() does string concatenation. A string is a sequence of bytes, terminated by a zero byte. The mem* functions operate on memory, which is a sequence of bytes, but not terminated. Instead, the mem*() functions require that you specify a size for the region of memory you are copying.

Given that explanation, memcpy() will do 'memory concatenation' for you:
memcpy(destination + destination_length,source,source_length);
destination_length += source_length;
In this case, you are 'concatenating' a source buffer that is source_length bytes long to the end of a destination buffer that is, prior to the concatenation, destination_length bytes long.


Software Zen: delete this;
QuestionAppending arrays Pin
chaitanya224-Mar-06 3:43
chaitanya224-Mar-06 3:43 
AnswerRe: Appending arrays Pin
John R. Shaw4-Mar-06 15:56
John R. Shaw4-Mar-06 15:56 
Questionword counter using threadings Pin
nanjesh4-Mar-06 3:37
nanjesh4-Mar-06 3:37 
AnswerRe: word counter using threadings Pin
Saurabh.Garg4-Mar-06 13:40
Saurabh.Garg4-Mar-06 13:40 
Questionword counter using threadings Pin
nanjesh4-Mar-06 3:36
nanjesh4-Mar-06 3:36 
Questionsimulate a real race condition Pin
zhshqzyc4-Mar-06 2:25
zhshqzyc4-Mar-06 2:25 
QuestionCan I use the ANSI String Class in a normal class Pin
Tom Moore4-Mar-06 1:36
Tom Moore4-Mar-06 1:36 
AnswerRe: Can I use the ANSI String Class in a normal class Pin
Gary R. Wheeler4-Mar-06 1:51
Gary R. Wheeler4-Mar-06 1:51 
Questioncan I do win32 app without vc? Pin
derek74-Mar-06 1:19
derek74-Mar-06 1:19 
AnswerRe: can I do win32 app without vc? Pin
Nemanja Trifunovic4-Mar-06 2:37
Nemanja Trifunovic4-Mar-06 2:37 
QuestionCSocket: Making the application wait till a Blocking call gets over Pin
Spykraft3-Mar-06 23:20
Spykraft3-Mar-06 23:20 
QuestionHow to use WSAAsyncSelect in windows service Pin
milkyhonglee3-Mar-06 22:15
milkyhonglee3-Mar-06 22:15 
AnswerRe: How to use WSAAsyncSelect in windows service Pin
Peter Weyzen4-Mar-06 8:52
Peter Weyzen4-Mar-06 8:52 
GeneralHow about WSAEventSelect? Pin
milkyhonglee4-Mar-06 14:30
milkyhonglee4-Mar-06 14:30 
Question$(ConfigurationName) Pin
derek73-Mar-06 21:40
derek73-Mar-06 21:40 
AnswerRe: $(ConfigurationName) Pin
Gary R. Wheeler4-Mar-06 2:19
Gary R. Wheeler4-Mar-06 2:19 
GeneralRe: $(ConfigurationName) Pin
derek74-Mar-06 3:19
derek74-Mar-06 3:19 

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.