Click here to Skip to main content
15,922,512 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Registry Problem Pin
Michael Dunn30-Sep-03 12:00
sitebuilderMichael Dunn30-Sep-03 12:00 
Generalstring question.. Pin
RobJones30-Sep-03 5:24
RobJones30-Sep-03 5:24 
GeneralRe: string question.. Pin
David Crow30-Sep-03 5:26
David Crow30-Sep-03 5:26 
GeneralRe: string question.. Pin
RobJones30-Sep-03 5:31
RobJones30-Sep-03 5:31 
GeneralRe: string question.. Pin
RobJones30-Sep-03 7:08
RobJones30-Sep-03 7:08 
GeneralRe: string question.. Pin
David Crow30-Sep-03 7:38
David Crow30-Sep-03 7:38 
GeneralRe: string question.. Pin
RobJones30-Sep-03 7:48
RobJones30-Sep-03 7:48 
GeneralRe: string question.. Pin
David Crow30-Sep-03 7:53
David Crow30-Sep-03 7:53 
RobJones wrote:
I think I need some way of doing a memcpy that appends instead of strcat...

You are correct. This is because the data you are receiving may have embedded '\0' characters, of which strcat() uses and memcpy() does not.

Try something like:

int nOffset = 0;
...
memcpy(outBuff + nOffset, inBuff, nRecv);
nOffset += nRecv;


Five birds are sitting on a fence.
Three of them decide to fly off.
How many are left?

GeneralRe: string question.. Pin
RobJones30-Sep-03 8:05
RobJones30-Sep-03 8:05 
GeneralRe: string question.. Pin
Arbage30-Sep-03 9:47
Arbage30-Sep-03 9:47 
GeneralRe: string question.. Pin
RobJones30-Sep-03 11:01
RobJones30-Sep-03 11:01 
QuestionYou Ever Wonder Why? Pin
Larry J. Siddens30-Sep-03 4:56
Larry J. Siddens30-Sep-03 4:56 
AnswerRe: You Ever Wonder Why? Pin
Steve S30-Sep-03 5:11
Steve S30-Sep-03 5:11 
GeneralRe: You Ever Wonder Why? Pin
Larry J. Siddens30-Sep-03 5:14
Larry J. Siddens30-Sep-03 5:14 
GeneralRe: You Ever Wonder Why? Pin
Steve S30-Sep-03 5:26
Steve S30-Sep-03 5:26 
GeneralRe: You Ever Wonder Why? Pin
Larry J. Siddens30-Sep-03 5:34
Larry J. Siddens30-Sep-03 5:34 
GeneralRe: You Ever Wonder Why? Pin
Steve S30-Sep-03 5:40
Steve S30-Sep-03 5:40 
GeneralRe: You Ever Wonder Why? Pin
Larry J. Siddens30-Sep-03 6:02
Larry J. Siddens30-Sep-03 6:02 
GeneralRe: You Ever Wonder Why? Pin
Steve S30-Sep-03 22:20
Steve S30-Sep-03 22:20 
GeneralRe: You Ever Wonder Why? Pin
Larry J. Siddens1-Oct-03 2:25
Larry J. Siddens1-Oct-03 2:25 
GeneralRe: You Ever Wonder Why? Pin
Larry J. Siddens1-Oct-03 3:53
Larry J. Siddens1-Oct-03 3:53 
GeneralRe: You Ever Wonder Why? Pin
Steve S1-Oct-03 4:30
Steve S1-Oct-03 4:30 
GeneralRe: You Ever Wonder Why? Pin
Larry J. Siddens1-Oct-03 10:18
Larry J. Siddens1-Oct-03 10:18 
GeneralRe: You Ever Wonder Why? Pin
Larry J. Siddens3-Oct-03 3:16
Larry J. Siddens3-Oct-03 3:16 
QuestionHow To OutPut To A Sound Card Pin
Cowwey30-Sep-03 4:19
Cowwey30-Sep-03 4: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.