Click here to Skip to main content
16,007,443 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: yet another inpout32 parallel port question... Pin
indychris200624-Nov-05 5:39
indychris200624-Nov-05 5:39 
GeneralRe: yet another inpout32 parallel port question... Pin
kakan24-Nov-05 20:26
professionalkakan24-Nov-05 20:26 
GeneralRe: yet another inpout32 parallel port question... Pin
indychris20065-Dec-05 15:00
indychris20065-Dec-05 15:00 
QuestionHelp with memcpy ? Pin
Cindy197822-Nov-05 15:30
Cindy197822-Nov-05 15:30 
AnswerRe: Help with memcpy ? Pin
Chris Losinger22-Nov-05 15:45
professionalChris Losinger22-Nov-05 15:45 
QuestionRe: Help with memcpy ? Pin
Cindy197822-Nov-05 16:01
Cindy197822-Nov-05 16:01 
AnswerRe: Help with memcpy ? Pin
Christian Graus22-Nov-05 16:26
protectorChristian Graus22-Nov-05 16:26 
AnswerRe: Help with memcpy ? Pin
Christian Graus22-Nov-05 16:31
protectorChristian Graus22-Nov-05 16:31 
PBYTE is an unsigned char *, right ? Stupid macros.

Anyhow, this works fine for me:

char c1[2] = {'a', 'b'};
char c2[2] = {'c', 'd'};
char c3[2] = {'e', 'f'};
char c4[2] = {'g', 'h'};

char * c = new char[8];

memcpy(c, c1, 2);
memcpy(c + 2, c2, 2);
memcpy(c + 4, c3, 2);
memcpy(c + 6, c4, 2);

memcpy(&c[6], c1, 2);
memcpy(&c[4], c2, 2);
memcpy(&c[2], c3, 2);
memcpy(&c[0], c4, 2);

Note I did it two different ways, both worked.


Christian Graus - Microsoft MVP - C++
Questioncreate ordinary window using menu Pin
stick_thai22-Nov-05 14:20
stick_thai22-Nov-05 14:20 
QuestionGDI+ PNG Transparency Pin
ClickHeRe22-Nov-05 13:50
ClickHeRe22-Nov-05 13:50 
AnswerRe: GDI+ PNG Transparency Pin
douglasjordan22-Nov-05 18:09
douglasjordan22-Nov-05 18:09 
Questionenable and disable menu item of a dialog box Pin
includeh1022-Nov-05 12:22
includeh1022-Nov-05 12:22 
AnswerRe: enable and disable menu item of a dialog box Pin
Cool Ju22-Nov-05 16:54
Cool Ju22-Nov-05 16:54 
GeneralRe: enable and disable menu item of a dialog box Pin
includeh1022-Nov-05 18:58
includeh1022-Nov-05 18:58 
AnswerRe: enable and disable menu item of a dialog box Pin
jhwurmbach23-Nov-05 2:54
jhwurmbach23-Nov-05 2:54 
QuestionBest way to set min size for a window? Pin
Ian Bowler22-Nov-05 8:10
Ian Bowler22-Nov-05 8:10 
AnswerRe: Best way to set min size for a window? Pin
David Crow22-Nov-05 9:04
David Crow22-Nov-05 9:04 
GeneralRe: Best way to set min size for a window? Pin
Ian Bowler22-Nov-05 10:57
Ian Bowler22-Nov-05 10:57 
QuestionSerialization and File | Save Pin
BuckBrown22-Nov-05 7:49
BuckBrown22-Nov-05 7:49 
AnswerRe: Serialization and File | Save Pin
David Crow22-Nov-05 7:53
David Crow22-Nov-05 7:53 
GeneralRe: Serialization and File | Save Pin
BlackDice23-Nov-05 11:20
BlackDice23-Nov-05 11:20 
GeneralRe: Serialization and File | Save Pin
David Crow25-Nov-05 14:03
David Crow25-Nov-05 14:03 
AnswerRe: Serialization and File | Save Pin
Cliff Hatch24-Nov-05 23:39
Cliff Hatch24-Nov-05 23:39 
QuestionWeb page segmentation Pin
llp00na22-Nov-05 7:20
llp00na22-Nov-05 7:20 
QuestionSHFileOperation problem Pin
Alex Orovetskiy22-Nov-05 6:05
Alex Orovetskiy22-Nov-05 6:05 

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.