I am attempting to create a form in C using the following concept.
I create a field struct:
I also create a record struct to store data;
Can I point the void item 'point_to_data' to item1, item2 etc..? to transfer data from screen to an input segment?
If anyone can tell me how to point 'point_to_data' to the data item I would be a very happy bunny.
Dan.
'All good things might seem good at first but at the end of the day they are just things...'
I create a field struct:
Code:
struct field
{
int index;
void *point_to_data;
char *caption;
int hor_pos, ver_pos;
} myform[15];
I also create a record struct to store data;
Code:
struct myrec
{
char *item1;
char *item2;
struct myrec *next;
} *rec1;
If anyone can tell me how to point 'point_to_data' to the data item I would be a very happy bunny.
Dan.
'All good things might seem good at first but at the end of the day they are just things...'