April 12, 200917 yr Hi folk ! I can not find any example about this SIMCONNECT_DATA_XYZ struct.I want to read or transmit any data to/from sim use this structure , please tell me HOW ? It is a work ? Who are use it ?I read in C+ or Delphi or VB. Thanx. EZdok software. www.ezdok-software.com
April 12, 200917 yr Commercial Member Hi folk ! I can not find any example about this SIMCONNECT_DATA_XYZ struct.I want to read or transmit any data to/from sim use this structure , please tell me HOW ?The structure is clearly defined in the SimConnect header:// SIMCONNECT_DATA_XYZstruct SIMCONNECT_DATA_XYZ{ double x; double y; double z;};So, just define a structure of three doubles (64-bit floats), and pass its address where you'd normally pass the address of your single double or integer or whatever.RegardsPete Win10: 22H2 19045.2728 CPU: 9900KS at 5.5GHz Memory: 32Gb at 3800 MHz. GPU: RTX 24Gb Titan 2 x 2160p projectors at 25Hz onto 200 FOV curved screen
April 13, 200917 yr Well, to start with, the structure types can only be used with specific SimVar names (for the XYZ, there are around 10 that use that format, LATLONALT has about 5). Second, you would create a variable in your data structure using the full SimConnect data type name (ie "SIMCONNECT_DATA_XYZ myXYZVar;") and do one AddToDataDef call for that field using SIMCONNECT_DATATYPE_XYZ as the data type.Also note, some of the SimVar structure types (Waypoints, InitPosition) are only valid when used with SetDataOnXxx, they aren't associated with any readable variables and can't be used with RequestDataOnXxx. Tim http://fsandm.wordpress.com
Create an account or sign in to comment