Click here to Skip to main content
15,879,348 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Where to submit C++ Games Pin
toxcct5-Dec-07 22:47
toxcct5-Dec-07 22:47 
GeneralRe: Where to submit C++ Games [modified] Pin
Nelek5-Dec-07 23:02
protectorNelek5-Dec-07 23:02 
GeneralRe: Where to submit C++ Games Pin
ThatsAlok6-Dec-07 0:21
ThatsAlok6-Dec-07 0:21 
GeneralRe: Where to submit C++ Games Pin
Cedric Moonen6-Dec-07 0:00
Cedric Moonen6-Dec-07 0:00 
GeneralThanks Pin
Vince Rojas6-Dec-07 15:42
Vince Rojas6-Dec-07 15:42 
GeneralRe: Thanks Pin
ThatsAlok6-Dec-07 20:17
ThatsAlok6-Dec-07 20:17 
GeneralRe: Thanks Pin
Nelek6-Dec-07 21:23
protectorNelek6-Dec-07 21:23 
GeneralRead a byte stream into separate buffers. Pin
CodingLover5-Dec-07 22:22
CodingLover5-Dec-07 22:22 
Hi all,

I have a byte stream, consisting of two parts. First 4 bytes gives an int value. Rest of the part give just a name. I want to read them separately.

I've tried something like this.

<br />
UINT vBuffer[4];<br />
::memcpy(vBuffer,InMsg.GetDataBuffer(),sizeof(vBuffer));<br />


used memcpy to copy the first 4 bytes to my buffer. Now I have two question. How read the vBuffer and find the value? How to read the rest?

I appreciate your help all the time...
Eranga Smile | :)

GeneralRe: Read a byte stream into separate buffers. [modified] Pin
toxcct5-Dec-07 22:31
toxcct5-Dec-07 22:31 
GeneralRe: Read a byte stream into separate buffers. Pin
CodingLover5-Dec-07 22:51
CodingLover5-Dec-07 22:51 
GeneralRe: Read a byte stream into separate buffers. Pin
toxcct5-Dec-07 22:55
toxcct5-Dec-07 22:55 
GeneralRe: Read a byte stream into separate buffers. Pin
CodingLover5-Dec-07 23:04
CodingLover5-Dec-07 23:04 
GeneralRe: Read a byte stream into separate buffers. [modified] Pin
toxcct5-Dec-07 23:05
toxcct5-Dec-07 23:05 
GeneralRe: Read a byte stream into separate buffers. Pin
CodingLover5-Dec-07 23:15
CodingLover5-Dec-07 23:15 
GeneralRe: Read a byte stream into separate buffers. Pin
toxcct5-Dec-07 23:19
toxcct5-Dec-07 23:19 
GeneralRe: Read a byte stream into separate buffers. Pin
CodingLover5-Dec-07 23:48
CodingLover5-Dec-07 23:48 
GeneralRe: Read a byte stream into separate buffers. Pin
toxcct5-Dec-07 23:54
toxcct5-Dec-07 23:54 
GeneralRe: Read a byte stream into separate buffers. Pin
CodingLover6-Dec-07 0:00
CodingLover6-Dec-07 0:00 
GeneralRe: Read a byte stream into separate buffers. Pin
toxcct6-Dec-07 0:07
toxcct6-Dec-07 0:07 
GeneralRe: Read a byte stream into separate buffers. Pin
CodingLover6-Dec-07 0:28
CodingLover6-Dec-07 0:28 
GeneralRe: Read a byte stream into separate buffers. [modified] Pin
toxcct6-Dec-07 1:55
toxcct6-Dec-07 1:55 
GeneralRe: Read a byte stream into separate buffers. Pin
CodingLover6-Dec-07 17:28
CodingLover6-Dec-07 17:28 
GeneralRe: Read a byte stream into separate buffers. Pin
jhwurmbach6-Dec-07 4:11
jhwurmbach6-Dec-07 4:11 
GeneralRe: Read a byte stream into separate buffers. Pin
CodingLover6-Dec-07 17:31
CodingLover6-Dec-07 17:31 
GeneralRe: Read a byte stream into separate buffers. Pin
CodingLover5-Dec-07 23:39
CodingLover5-Dec-07 23:39 

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.