ExpeditionExpedition Navigation Software


Click Here for Expedition Assistant - AI Chatbot

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

Today 1:04 pm  #1


How does GetExpVar2 and SetExpVar2 work?

I have some previous applications that stopped working as it was based on DLL calls GetExpVars. I can see in the ExpDLL.h that the two new GetExpVar2 and SetExpVar2 are available. Does anyone knows how they work?

There is an include of "sys_val.h" in the ExpDLL.h but can not find that file. That might give some clarity...

Also, does this upgrade of the DLL means one have to loop through several GetExpVar to pick up several channels per run?

 

 

Today 2:15 pm  #2


Re: How does GetExpVar2 and SetExpVar2 work?

You can also just use GetExpVar() for most data.

ExVar is just a struct. most vars are doubles, but time vars will use the t member. Currently defined as:

enum e_ValType
{
    e_Bool,
    e_Double,
    e_Int32,
    e_Int64,     // time
    e_String,
};


struct ExVal
{
    int8_t type;     // e_ValType

    union
    {
        bool b;
        double d;
        int32_t i32;
        int64_t t;            // winrt::clock, 100 nanosecond intervals since Jan 1 1601
        char s[8];
    };
};

 

Board footera




Check out RaceData for iOS and Android. Expedition data in the palm of your hand, or on your wrist! RaceData

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