Click here to Skip to main content
16,009,156 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Registry Problem Pin
David Crow30-Sep-03 7:42
David Crow30-Sep-03 7:42 
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 
The structure is like this...

struct s_recv {
int nTag;
char sTagMsg[256];
char sMsg[3072];
};

When I do the receive sometimes I dont receive the whole structure just a peice of it.. So I'm trying to store what I have received in a char and then keep appending the data until all the data is received..

Here is a output of the strcpy...
The inBuff contains..
[0] -75 'µ'
[1] 6 ''
[2] 0 ''
[3] 0 ''
[4] 110 'n'
[5] 111 'o'
[6] 110 'n'
[7] 101 'e'
[8] 0 ''
[9] -51 'Í'
etc.......

This is fine.. But when I do the cat..
the outBuff looks like this...
[0] -75 'µ'
[1] 6 ''
[2] 0 ''
[3] 0 ''
[4] 0 ''
[5] 0 ''
[6] 0 ''
[7] 0 ''
[8] 0 ''
[9] 0 ''
etc......

I think I need some way of doing a memcpy that appends instead of strcat...


Rob




Whoever said nothing's impossible never tried slamming a revolving door!
GeneralRe: string question.. Pin
David Crow30-Sep-03 7:53
David Crow30-Sep-03 7:53 
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 

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.