Offline
A am puzzled as to what arguments to send to the GetExpVar function as defined in ExpDLL.h
extern "C" EXP_API void __stdcall GetExpVar(short id, double* pValue, short iBoat, short* pId);
1. short id.
a) Any number 0 to 31 according to the Userchannel you want the value of?
or
b) Any identifier of the ExChannels enumerator list; i.e "ExUtc", ... , to "ExNumChannels" as defined in UsrChannels.h?
2. double* pValue. Pointer to where you want the function to put the value of the above ID - makes sense.
3. short iBoat. Number of the boat - makes sense.
4. short* pId. Pointer to what? For what purpose? (Also this 4. argument is not mentioned in the Expedition Help).
Regards John
Offline
id: The UsrChannels.h file installed with Exp has all the channel id values in Exp.
pID is the channel the returned data is for if id is an alternating channel.
Offline
Thank you for the reply!
I have got GetExpVar working fine.
However with SetExpVar I get an error "Exception EAccess Violation ... ".
Anyone tried this function call and got it working?
Also, looking into the ExpDLL.h:
shouldn't the
extern "C" EXP_API void __stdcall GetExpVarName(short id, char name[16]);
declaration's 2:nd argument be a pointer (similar to the other GET... declarations) where to put the name array rather than the name array itself as that
will not be returned?
Regards
Last edited by JohnA (7/31/2017 4:44 am)