Expedition Expedition Navigation Software

You are not logged in. Would you like to login or register?



7/28/2017 1:00 pm  #1


Arguments to GetExpVar in ExpDLL.DLL ?

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
 

 

7/28/2017 3:40 pm  #2


Re: Arguments to GetExpVar in ExpDLL.DLL ?

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.

 

7/31/2017 12:26 am  #3


Re: Arguments to GetExpVar in ExpDLL.DLL ?

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)

     Thread Starter
 

Board footera

 

Powered by Boardhost. Create a Free Forum


Interested in advertising here? Over a thousand active navigators and Expedition users visit this forum. Click here to contact the administrator.