martindavey
Programmer
I have the following structure:-
struct _ServiceKey {
int oper;
int dist;
int site;
char route[4+1];
} **ppServiceKey, *pFirstKey;
How do I reference an element (eg. oper) in this structure?
In dbx the following works ok:-
assign (**ppServiceKey)->oper = 5
print (**ppServiceKey)->oper
In my program I have:-
(**ppServiceKey)->oper = 5;
This gives me the compiliation error:-
...left operand of "->" must be pointer to struct/union...
Apologies if I'm being stupid.
struct _ServiceKey {
int oper;
int dist;
int site;
char route[4+1];
} **ppServiceKey, *pFirstKey;
How do I reference an element (eg. oper) in this structure?
In dbx the following works ok:-
assign (**ppServiceKey)->oper = 5
print (**ppServiceKey)->oper
In my program I have:-
(**ppServiceKey)->oper = 5;
This gives me the compiliation error:-
...left operand of "->" must be pointer to struct/union...
Apologies if I'm being stupid.