- Messages
- 10
- Country

I've read in p3d sdk documentation that pData is a buffer and struct SIMCONNECT_RECV_OPEN is inherited from SIMCONNECT_RECV
But why in line 7, the pointer type can be SIMCONNECT_RECV_OPEN? What's exactly the detail of pData?
Since I'm fresh to C++, forgive me for asking some basic questions.
C++:
void CALLBACK MyDispatchProc(SIMCONNECT_RECV* pData, DWORD cbData, void* pContext)
{
switch(pData->dwID)
{
case SIMCONNECT_RECV_ID_OPEN:
// enter code to handle SimConnect version information received in a SIMCONNECT_RECV_OPEN structure.
SIMCONNECT_RECV_OPEN *openData = (SIMCONNECT_RECV_OPEN*) pData;
break;
But why in line 7, the pointer type can be SIMCONNECT_RECV_OPEN? What's exactly the detail of pData?
Since I'm fresh to C++, forgive me for asking some basic questions.

