Hi,
I'm trying to use this sample : http://msdn.microsoft.com/en-us/library/cc730357.aspx
The probematic part:
The sample stop at "switch (pS->datum[count].id)" with this error : "Violation d'accès lors de la lecture de l'emplacement 0x00000000."
That's because pObjData->dwData = 0 then pS too
But the sdk documentation say :
So, i don't know why the data received have this value.
Does someone sees a mistake in the sample ?
Thank you,
Will
I'm trying to use this sample : http://msdn.microsoft.com/en-us/library/cc730357.aspx
The probematic part:
Code:
[...]
case SIMCONNECT_RECV_ID_SIMOBJECT_DATA:
;
{
SIMCONNECT_RECV_SIMOBJECT_DATA *pObjData = (SIMCONNECT_RECV_SIMOBJECT_DATA*)pData;
switch (pObjData->dwRequestID)
{
case REQUEST_PDR:
;
{
int count = 0;;
StructDatum *pS = (StructDatum*)pObjData->dwData;
// There can be a minimum of 1 and a maximum of maxReturnedItems
// in the StructDatum structure. The actual number returned will
// be held in the dwDefineCount parameter.
while (count < (int)pObjData->dwDefineCount)
{
switch (pS->datum[count].id)
[...]
The sample stop at "switch (pS->datum[count].id)" with this error : "Violation d'accès lors de la lecture de l'emplacement 0x00000000."
That's because pObjData->dwData = 0 then pS too
But the sdk documentation say :
and dwDefineCount = 2.dwData
A data array containing information on a specified object in 8-byte (double word) elements. The length of the array is dwDefineCount.
So, i don't know why the data received have this value.
Does someone sees a mistake in the sample ?
Thank you,
Will

