Jump to content
The simFlight Network Forums

Guillaume-FR-

Members
  • Posts

    12
  • Joined

  • Last visited

Everything posted by Guillaume-FR-

  1. Hi, I don't understand all in "To convert to Degrees:" in the sdk (because i am french and my english is poor ) could you give me the code for to convert in degrees ? in c++ thanks
  2. Hi , I have 2 questions : How to get the latitude and longitude of the plane ? (like N47*19.79 E3*1.79 ....) I don’t know if it’s possible, I want to know the distance covered in MN (sorry i don’t know the real expression in English ) In C++ with Devc++ Thanks :wink:
  3. Hi How to write a text in FS ? (in the green line). in C++. Thanks in advance.
  4. Thanks Pete ! It's okay ! But with wsprintf(alting, "%.2f", dAlt); I get "f" And with sprintf(alting, "%.2f", dAlt); it's okay Thanks !
  5. 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:
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use. Guidelines Privacy Policy We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.