Click here to Skip to main content
16,005,080 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralSPIF_SENDCHANGE ? Pin
bikram singh31-Jul-04 16:14
bikram singh31-Jul-04 16:14 
GeneralInitialising a items in a structure Pin
Grahamfff30-Jul-04 10:35
Grahamfff30-Jul-04 10:35 
GeneralRe: Initialising a items in a structure Pin
Kosk30-Jul-04 11:54
Kosk30-Jul-04 11:54 
GeneralRe: Initialising a items in a structure Pin
Grahamfff30-Jul-04 21:07
Grahamfff30-Jul-04 21:07 
GeneralRe: Initialising a items in a structure Pin
Gary R. Wheeler30-Jul-04 12:33
Gary R. Wheeler30-Jul-04 12:33 
GeneralRe: Initialising a items in a structure Pin
Grahamfff30-Jul-04 21:32
Grahamfff30-Jul-04 21:32 
GeneralRe: Initialising a items in a structure Pin
Gary R. Wheeler31-Jul-04 1:55
Gary R. Wheeler31-Jul-04 1:55 
GeneralRe: Initialising a items in a structure Pin
Grahamfff2-Aug-04 10:50
Grahamfff2-Aug-04 10:50 
Thanks for the info. I have started to use your scheme, or a varient of it.

Will use the union as follows:-

typedef struct
{
unsigned short data1;
}DATA1;
typedef struct
{
unsigned : 4 data2;
}DATA2;


etc

union ALL_DATA_UNION
{
DATA1 data1;
DATA2 data2;
etc
unsigned short buffer[50];
}ALL_DATA;

I need to transmit the buffer, but want all the data items 'overlayed' with the buffer. Dont need to initialise the union as can use memcpy to zero the buffer.

I will have another structure with the details of each item of data and initialise it as per your scheme.

Thanks again, but please point out if this scheme is fault.

Regards,

Graham


grahamfff
GeneralRe: Initialising a items in a structure Pin
Sheff30-Jul-04 22:01
Sheff30-Jul-04 22:01 
GeneralDisable maxmize minimize window Pin
magee8130-Jul-04 10:20
sussmagee8130-Jul-04 10:20 
GeneralRe: Disable maxmize minimize window Pin
valikac30-Jul-04 14:11
valikac30-Jul-04 14:11 
GeneralChange IP address Notification Pin
Renjith Ramachandran30-Jul-04 9:46
Renjith Ramachandran30-Jul-04 9:46 
GeneralNotifyAddrChange() Pin
bikram singh31-Jul-04 16:41
bikram singh31-Jul-04 16:41 
QuestionHow to set default web-site from C++? Pin
includeh1030-Jul-04 9:06
includeh1030-Jul-04 9:06 
AnswerRe: How to set default web-site from C++? Pin
Renjith Ramachandran30-Jul-04 9:47
Renjith Ramachandran30-Jul-04 9:47 
GeneralRe: How to set default web-site from C++? Pin
includeh1030-Jul-04 9:55
includeh1030-Jul-04 9:55 
GeneralREFERENCE TO ARRAY OF 10 INTEGERS Pin
avenger_sb2530-Jul-04 7:57
avenger_sb2530-Jul-04 7:57 
GeneralRe: REFERENCE TO ARRAY OF 10 INTEGERS Pin
Jaime Stuardo30-Jul-04 8:37
Jaime Stuardo30-Jul-04 8:37 
GeneralRe: REFERENCE TO ARRAY OF 10 INTEGERS Pin
avenger_sb2530-Jul-04 8:48
avenger_sb2530-Jul-04 8:48 
GeneralRe: REFERENCE TO ARRAY OF 10 INTEGERS Pin
Kochise30-Jul-04 9:42
Kochise30-Jul-04 9:42 
GeneralRe: REFERENCE TO ARRAY OF 10 INTEGERS Pin
Michael Dunn30-Jul-04 9:46
sitebuilderMichael Dunn30-Jul-04 9:46 
GeneralRe: REFERENCE TO ARRAY OF 10 INTEGERS Pin
avenger_sb2531-Jul-04 0:21
avenger_sb2531-Jul-04 0:21 
GeneralRe: REFERENCE TO ARRAY OF 10 INTEGERS Pin
markkuk30-Jul-04 12:16
markkuk30-Jul-04 12:16 
GeneralRe: REFERENCE TO ARRAY OF 10 INTEGERS Pin
avenger_sb2531-Jul-04 0:17
avenger_sb2531-Jul-04 0:17 
GeneralRight-Left Rule... Pin
bikram singh31-Jul-04 15:58
bikram singh31-Jul-04 15:58 

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.