D
David Buck
I have a structure as follows;
typedef struct {
char queue[24];
unsigned int mode;
unsigned int baud;
unsigned int data;
BOOL del;
} cblock
I create two data structures
cblock real;
cblock dlog;
the idea being that the dlog structure takes a copy of the real structure
when a dialogue box opens, to allow the user to play with various settings,
and then copies these temporary settings back to real when the user clicks
OK.
Can I copy the data before opening the dialogue with
dlog = real;
and copy it back after with
real=dlog;
it all seems to work, except the real.queue and dlog.queue don't copy
correctly.
typedef struct {
char queue[24];
unsigned int mode;
unsigned int baud;
unsigned int data;
BOOL del;
} cblock
I create two data structures
cblock real;
cblock dlog;
the idea being that the dlog structure takes a copy of the real structure
when a dialogue box opens, to allow the user to play with various settings,
and then copies these temporary settings back to real when the user clicks
OK.
Can I copy the data before opening the dialogue with
dlog = real;
and copy it back after with
real=dlog;
it all seems to work, except the real.queue and dlog.queue don't copy
correctly.