06-25-2009 04:20 PM
I am using GetCtrlVal to put a value from a control into a member of a array of structures. ( the member in this particular case is a float).
GetCtrlVal(panel,control,&MyStruct[IndexNumber].Member);
When I try to compile I get the error "Lvalue required".
I can get around this by assigning a temporary value when I use GetCtrlVal, and then later assigning it to the structure member.
I would like to assign the control contents directly to the structure member. Any ideas on how to do this?
Thanks,
Matt
06-25-2009 04:37 PM