Hi
Sorry for my English I am French (and to understand the SDK with my English ....,I am 14 :cry: ...)
I am programming in C++ (with DEVC++).
And I want to read some data of Flight Simulator (altitude, speed ...).
But I can read some variable (with “expression”)
For example : for altitude (0570, S64) the expression is “#*3.28084/(65536*65536)” and with this :
int altint;
char alt[8],alting[8];
......
if (!FSUIPC_Read(0x0840, 8, alt, &dwResult) || !FSUIPC_Process(&dwResult)) fTimeOk = FALSE;
wsprintf(alting, "%d", alt[0]);
altint=atoi(alting);
altint=altint*3.28084/(65536*65536);
wsprintf(alting, "%d", altint);
and I get : -2147483648 :(
Why ?
Other question :
How to know the nearest airport of the plane ? (ICAO)
Thanks in advance. :wink: