Click here to Skip to main content
15,886,004 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Best alternative to GDI/GDI+ for simple 2D games Pin
Randor 24-Jul-09 9:27
professional Randor 24-Jul-09 9:27 
AnswerRe: Best alternative to GDI/GDI+ for simple 2D games Pin
Moak25-Jul-09 3:34
Moak25-Jul-09 3:34 
QuestionHow to calculate checksum Pin
resolvequestion24-Jul-09 9:05
resolvequestion24-Jul-09 9:05 
AnswerRe: How to calculate checksum Pin
Emilio Garavaglia24-Jul-09 9:27
Emilio Garavaglia24-Jul-09 9:27 
AnswerRe: How to calculate checksum Pin
«_Superman_»24-Jul-09 17:47
professional«_Superman_»24-Jul-09 17:47 
QuestionSupport asked for virtualising a program in Vista using TokenVirtualizationEnabled using SetTokenInformation Pin
Kees195824-Jul-09 8:57
Kees195824-Jul-09 8:57 
QuestionDSA algorithm Pin
sarroya24-Jul-09 7:38
sarroya24-Jul-09 7:38 
QuestionHow to store array in vector in C++ Pin
resolvequestion24-Jul-09 7:30
resolvequestion24-Jul-09 7:30 
I am using vector to store the incoming data. Now my data is stored in Struct. I want to store only "bydata[]" from my structure into vector.... as the data keeps coming in.... I will just keep adding at the end of the vector "bydata[]" .....
How do I store this data using vector... or theres any other method tht I can use it.....

#define MAX_DATA_BYTES 60
typedef struct
{
unsigned char CheckFlags;
unsigned char Checksum;
unsigned short SequenceCounter;
} sHeader; //

typedef struct
{
sHeader Header;
unsigned char byData[MAX_DATA_BYTES];
} sData; //


Below code shown previously stores the entire structure... but I just want the "sData.byData[]" to be stored....


Please can someone help me.....

modified on Friday, July 24, 2009 3:01 PM

AnswerRe: How to pass array inside Vector in C++ Pin
transoft24-Jul-09 7:57
transoft24-Jul-09 7:57 
AnswerRe: How to store array in vector in C++ Pin
«_Superman_»24-Jul-09 17:59
professional«_Superman_»24-Jul-09 17:59 
QuestionTab control implementation in MFC document / view application. [modified] Pin
Vaclav_24-Jul-09 5:55
Vaclav_24-Jul-09 5:55 
Questionsafely returning classes from functions... when and when not to construct ! Pin
paolosh24-Jul-09 5:04
paolosh24-Jul-09 5:04 
AnswerRe: safely returning classes from functions... when and when not to construct ! Pin
josda100024-Jul-09 8:21
josda100024-Jul-09 8:21 
GeneralRe: safely returning classes from functions... when and when not to construct ! Pin
paolosh24-Jul-09 23:48
paolosh24-Jul-09 23:48 
QuestionBeginner: How to access elements in a Variant array of Variants (8204) Pin
BeerFizz24-Jul-09 4:19
BeerFizz24-Jul-09 4:19 
QuestionReturning large objects from a function without unnecessarily invoking the constructor ! Pin
paolosh24-Jul-09 3:31
paolosh24-Jul-09 3:31 
AnswerRe: Returning large objects from a function without unnecessarily invoking the constructor ! Pin
transoft24-Jul-09 3:43
transoft24-Jul-09 3:43 
GeneralRe: Returning large objects from a function without unnecessarily invoking the constructor ! Pin
paolosh24-Jul-09 3:51
paolosh24-Jul-09 3:51 
GeneralRe: Returning large objects from a function without unnecessarily invoking the constructor ! Pin
peterchen24-Jul-09 3:58
peterchen24-Jul-09 3:58 
GeneralRe: Returning large objects from a function without unnecessarily invoking the constructor ! Pin
paolosh24-Jul-09 4:09
paolosh24-Jul-09 4:09 
GeneralRe: Returning large objects from a function without unnecessarily invoking the constructor ! Pin
peterchen24-Jul-09 8:37
peterchen24-Jul-09 8:37 
GeneralRe: Returning large objects from a function without unnecessarily invoking the constructor ! Pin
transoft24-Jul-09 5:04
transoft24-Jul-09 5:04 
GeneralRe: Returning large objects from a function without unnecessarily invoking the constructor ! Pin
peterchen24-Jul-09 5:09
peterchen24-Jul-09 5:09 
GeneralRe: Returning large objects from a function without unnecessarily invoking the constructor ! Pin
transoft24-Jul-09 5:27
transoft24-Jul-09 5:27 
GeneralRe: Returning large objects from a function without unnecessarily invoking the constructor ! Pin
peterchen24-Jul-09 8:31
peterchen24-Jul-09 8:31 

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.