Hello Sir,
I buy the FSX and download FSUIPC 4 unregistered version, and I use the example C program
to interface FSUIPC to get FSUIPC_Version, FSUIPC_FS_Version as well Time from FSX.
VERY GOOD. However, I want to get (read) 0x570 Altitude values, but the Altitude values
are always 0. Questions: 1) It is because the FSUIPC 4 is not registered, so that the Altitude
values always are 0. or 2) It is because my program problem, so that the Altitude values always
are 0. 3) How to pay money to register FSUIPC to get the registered key code, I am in Vienna.
The read Altitude program is as follows:
if (!FSUIPC_Read(0x570, 4, AltitudeChar4, &dwResult) || !FSUIPC_Process(&dwResult))
{
AltitudeOk = FALSE;
printf (" Read AltitudeFra Error! \n");
}
else
{
AltitudeFra = atoi(AltitudeChar4);
}
if (!FSUIPC_Read(0x574, 4, AltitudeChar4, &dwResult) || !FSUIPC_Process(&dwResult))
{
AltitudeOk = FALSE;
printf (" Read AltitudeInt Error! \n");
}
else
{
AltitudeInt = atoi(AltitudeChar4);
printf("Altitude = %d.%d \n", AltitudeInt, AltitudeFra);
}