Hi everybody:
I had seriously read the manual of SDK, I found that the use of the Message cycle on data collection.
There are 16 kinds of data structures
as follow:
SIMCONNECT_RECV_OPEN structure.
SIMCONNECT_RECV_EVENT structure.
SIMCONNECT_RECV_EVENT_FILENAME structure.
SIMCONNECT_RECV_EVENT_OBJECT_ADDREMOVE structure.
SIMCONNECT_RECV_EVENT_FRAME structure.
SIMCONNECT_RECV_SIMOBJECT_DATA structure.
SIMCONNECT_RECV_SIMOBJECT_DATA_BYTYPE structure.
SIMCONNECT_RECV_EXCEPTION structure.
SIMCONNECT_RECV_WEATHER_OBSERVATION structure.
....
So different Message of data to different data structures.
In the sample of SDK, it call SimConnect_CallDispatch in circular loop for data your desired .
I want to say whetherthe corresponding to different data structures to obtain data after the event can be requested,Rather than call switch() in the circular loop.

I had seriously read the manual of SDK, I found that the use of the Message cycle on data collection.
There are 16 kinds of data structures
as follow:
SIMCONNECT_RECV_OPEN structure.
SIMCONNECT_RECV_EVENT structure.
SIMCONNECT_RECV_EVENT_FILENAME structure.
SIMCONNECT_RECV_EVENT_OBJECT_ADDREMOVE structure.
SIMCONNECT_RECV_EVENT_FRAME structure.
SIMCONNECT_RECV_SIMOBJECT_DATA structure.
SIMCONNECT_RECV_SIMOBJECT_DATA_BYTYPE structure.
SIMCONNECT_RECV_EXCEPTION structure.
SIMCONNECT_RECV_WEATHER_OBSERVATION structure.
....
So different Message of data to different data structures.
In the sample of SDK, it call SimConnect_CallDispatch in circular loop for data your desired .
I want to say whetherthe corresponding to different data structures to obtain data after the event can be requested,Rather than call switch() in the circular loop.

