I am able to write data to Flight Sim now, but I am having trouble getting the data from it. If I want to get altitude, for example, is there a function I can call that returns the value immediately?
The way I have my DLL set up, I want to have variables for each parameter and a get function for each parameter. To update the variables, I want to call a single function. Is it possible? Does anyone have source code covering this besides the request data sample?
//////////////
//Pseudocode//
//////////////
// App calling DLL
SimConnectApp_GetUpdatedDataFromFlightSim();
double newAltitude = SimConnectApp_GetAltitude();
--------------------
// DLL
double Altitude;
SimConnectApp_GetUpdatedDataFromFlightSim(){
Altitude = getAltitudeFromFlightSim();
}
SimConnectApp_GetAltitude(){
return Altitude;
}
The way I have my DLL set up, I want to have variables for each parameter and a get function for each parameter. To update the variables, I want to call a single function. Is it possible? Does anyone have source code covering this besides the request data sample?
//////////////
//Pseudocode//
//////////////
// App calling DLL
SimConnectApp_GetUpdatedDataFromFlightSim();
double newAltitude = SimConnectApp_GetAltitude();
--------------------
// DLL
double Altitude;
SimConnectApp_GetUpdatedDataFromFlightSim(){
Altitude = getAltitudeFromFlightSim();
}
SimConnectApp_GetAltitude(){
return Altitude;
}

