I 'm attemp to use SimConnect_SetDataOnSimObject function to send 8 varibles(such as altitude,latitude,longitude,pitch,bank,heading,vertial speed,airspeed) togrther to fsx pre-frame?
I have seen SDK manual at SimConnect_SetDataOnSimObject.
I am confused here the The last three parameters of SimConnect_SetDataOnSimObject function :
ArrayCount
[in] Specifies the number of elements in the data array. A count of zero is interpreted as one element. Ensure that the data array has been initialized completely before transmitting it to Flight Simulator. Failure to properly initialize all array elements may result in unexpected behavior.
cbUnitSize
[in] Specifies the size of each element in the data array in bytes.
pDataSet
[in] Pointer to the data that is to be written. If the data is not in tagged format, this should point to the block of data. If the data is in tagged format this should point to the first tag name (datumID), which is always four bytes long, which should be followed by the data itself. Any number of tag name/value pairs can be specified this way, the server will use the cbUnitSize parameter to determine how much data has been sent.
So
How to achieve this function for prevent aircraft flashing when these varible being sent pre-frame?
thanks a lot
Sandwind
I have seen SDK manual at SimConnect_SetDataOnSimObject.
I am confused here the The last three parameters of SimConnect_SetDataOnSimObject function :
ArrayCount
[in] Specifies the number of elements in the data array. A count of zero is interpreted as one element. Ensure that the data array has been initialized completely before transmitting it to Flight Simulator. Failure to properly initialize all array elements may result in unexpected behavior.
cbUnitSize
[in] Specifies the size of each element in the data array in bytes.
pDataSet
[in] Pointer to the data that is to be written. If the data is not in tagged format, this should point to the block of data. If the data is in tagged format this should point to the first tag name (datumID), which is always four bytes long, which should be followed by the data itself. Any number of tag name/value pairs can be specified this way, the server will use the cbUnitSize parameter to determine how much data has been sent.
So
How to achieve this function for prevent aircraft flashing when these varible being sent pre-frame?
thanks a lot
Sandwind
