The documentation states:
It is possible to get and/or set an RPN “L” variable through SimConnect using the
SimConnect_AddToDataDefinition
function, for example:SimConnect_AddToDataDefinition(hSimConnect, DataDefinitionID, “L:VARIABLE_NAME”, “number”, SIMCONNECT_DATATYPE_FLOAT64);
Yet their example just presents what appears to be a default statement. If there’s RPN notation in there, I don’t see it.
I’m trying to set L:XMLVAR_ADF_Mode to a value:
SimConnect_AddToDataDefinition(hSimConnect, DEFINITION_1, “L:XMLVAR_ADF_Mode”, “number”, SIMCONNECT_DATATYPE_FLOAT64);
And I can’t figure it out by reading the “explanations” on the RPN page.
Robert
C++
VS2022