• Which the release of FS2020 we see an explosition of activity on the forun and of course we are very happy to see this. But having all questions about FS2020 in one forum becomes a bit messy. So therefore we would like to ask you all to use the following guidelines when posting your questions:

    • Tag FS2020 specific questions with the MSFS2020 tag.
    • Questions about making 3D assets can be posted in the 3D asset design forum. Either post them in the subforum of the modelling tool you use or in the general forum if they are general.
    • Questions about aircraft design can be posted in the Aircraft design forum
    • Questions about airport design can be posted in the FS2020 airport design forum. Once airport development tools have been updated for FS2020 you can post tool speciifc questions in the subforums of those tools as well of course.
    • Questions about terrain design can be posted in the FS2020 terrain design forum.
    • Questions about SimConnect can be posted in the SimConnect forum.

    Any other question that is not specific to an aspect of development or tool can be posted in the General chat forum.

    By following these guidelines we make sure that the forums remain easy to read for everybody and also that the right people can find your post to answer it.

Recent content by Choobe

  1. C

    SimConnect_WeatherRequestObservationAtStation

    Could it be just because of a reality bubble? Now I tried it when standing at LOWI and requested LOWI and EGLL, and it worked! 1st time I tried at EPGD, requesting EPGD, EPKK and EDDF. Only the 1st airport data was returned. Anyway it's still weird because IIRC distance b/w LOWI and EGLL should...
  2. C

    SimConnect_WeatherRequestObservationAtStation

    hi all! I wonder does this function, SimConnect_WeatherRequestObservationAtStation(), work for the current airport only? I wanted it to return METAR for any airport but it doesn't work. I can receive data for current airport only (where the aircraft is located) inside the "case...
  3. C

    FSX Data exchange between gauges, C++

    Why don't? The LoadLibrary already returns a proper value. As for GetModuleHandleEx() I also checked its return value after the sim is loaded and got the same NULL value. Update: that's really weird but I tried the same code on the same DLL today, the GetModuleHandleEx() worked well and returned...
  4. C

    FSX Data exchange between gauges, C++

    Attached is a sourcecode, including a DLL project and a gauge. BTW previously I found many other issues with FSX. Say, when getting a module handle the GetModuleHandle()/GetModuleHandleEx() works with some DLLs, but refuses to do so with some others - returns NULL, while GetLastError gives...
  5. C

    FSX Data exchange between gauges, C++

    That's really weird, but I cannot get it working with FSX. The sim does not load the newly created gauge. I found the callback function, e.g., the "void FSAPI GaugeMainCBF()" is not being called at all. And the "Debug" Output tab in Visual Studio shows the following: ... 'fsx.exe': Loaded...
  6. C

    FSX Data exchange between gauges, C++

    Many thanks to everyone! Tom, sorry for leaving it unclear. I meant the gauges are located in different DLL files. WebSimConnect, What's the advantages of this DLL exports over the variables sharing suggested by WarpD? Say, using the register_var_by_name()/initialize_var_by_name() one could...
  7. C

    FSX Data exchange between gauges, C++

    Thank you a lot, Naruto-kun! I really forgot about that option with dll exports. I thought those DLLs would have different address space, causing things to get complicated.
  8. C

    FSX Data exchange between gauges, C++

    Hello there, I'm trying to find a better solution on how to exchange data between FSX gauges. Simply exchanging L:vars is not sufficient. Say, there are the structures/classes in C++ and I need the other gauge to read (and sometimes write) these data. I tried different ways, for ex., created a...
  9. C

    FSX Access violation on subclassing

    Fs98float Another question: In case the floating window (2D panel) is active (in foreground), I receive messages no more. Apparently because I subclass using the main window HWND: FindWindow("FS98MAIN" and those floating windows have "FS98FLOAT" classes, not "FS98MAIN". So, will I have...
  10. C

    FSX Access violation on subclassing

    Thank you Doug! Now I make both calls of SetWindowLongPtr() in PANEL_SERVICE_PRE_DRAWs, which works much better. No CTD now, when I close FSX after I deactivated subclassing by clicking some clickzone. But still CTD happens, when I close FSX without deactivation of subclassing. For such...
  11. C

    FSX Access violation on subclassing

    I have a FSX gauge, and would like to subclass (replace the window procedure in order to process keyboard input). After I wrote my code ("SetWindowLongPtr(GWL_WNDPROC)"), it works fine, but on exit I get an exception. Regardless I call SetWindowLongPtr() second time (to restore old windowproc)...
  12. C

    FSX Custom autopilot

    Guys, I'd like to write a simple custom autopilot in C++. I can read autopilot variables via Simulation Variables, say, "AUTOPILOT ALTITUDE LOCK VAR, feet". But how can I disable the default autopilot? That is, all AP variables continue changing, but no actual movement of surfaces (until I...
  13. C

    Direct connection b/w joystick and sim

    Hello! How could I disable direct connection between joystick/keyboard and FSX for some cases? For ex., I need to catch the joystick throttle axis movements and modify the movement value. By other words, my gauge (not sim) should trigger corresponding event itself programmatically, calling...
  14. C

    FSX Sending Custom Events from model animations

    So how to read L: value in SC client? Why do you not use shift operators? >> shift right operand number of bits I also tried using "A:" variables that are not used in 'my' aircraft (jet engine), say, propeller or magneto related. But it turned out, those parameters cannot be set for jet...
  15. C

    FSX Sending Custom Events from model animations

    Hi Misho! How did you solved your problem, could you tell me? I'm looking for any ways of exchanging data between XML gauge and Simconnect client app. Eighter using L: variables or custom events.
Back
Top