Recent content by Prepar3DGuy

  1. Prepar3DGuy

    P3D v4 Gauge DLL 64 bit &VS2019

    Ok. I have found error in your code. In the fourth argument you must pass a pointer to the first drawing element in the list of elements. GAUGE_HEADER_FS1000( GAUGEHDR_VAR_NAME, GAUGE_W, ShtCPribor_gauge_name, &ShtCPribor_list, ShtCPribor_mouse_rect, 0, // Callback...
  2. Prepar3DGuy

    P3D v4 Gauge DLL 64 bit &VS2019

    That is wrong. You MUST NOT do something inside Prepar3D directory. Use add-on.xml for development and releases.
  3. Prepar3DGuy

    P3D v4 Gauge DLL 64 bit &VS2019

    Hello, Gav-Kot. First of all. Have you tried to convert SDK example project "CGaugeSample" to Visual Studio 2019? Does it works? I mean can you load and see gauges from that example in your test airplane? have you also copied debug information (*.pdb) file with the dll before start debuger?
  4. Prepar3DGuy

    FSX:SE Pop up window

    I have found a solution, not perfect by the way. I guess that P3D (FSX) uses DirectSound (dsound.dll) primary buffer. I have tried to add DirectSound to the Pop-Up window and do some Cooperative, but I don't know what settings P3D (FSX) uses. If sim have used DSBCAPS_GLOBALFOCUS may be it will...
  5. Prepar3DGuy

    FSX:SE Pop up window

    I have also tried not to mute sound from sim main window, but unsuccessful. I know that it possible. Look at the IVAO pilot client. Client's main window has focus for keyboard and mouse and doesn't mute sim sound. Default kneeboard window also doesn't mute sim sound.
  6. Prepar3DGuy

    Maths... err... physics... err... ouch!

    Because 1 lbf = 1 slug * ft / s^2 and 1 slug = 32.174 lbs
  7. Prepar3DGuy

    Maths... err... physics... err... ouch!

    m = 20200 lbs = 9162 kg a = 5.48 ft/s^2 = 1.67 m/s^2 F = m * a = 9162 * 1.67 = 15300.5 N = 3439.7 lbf
  8. Prepar3DGuy

    P3D v4 P3D PDK register property

    Try to unregister your add-on directory. "%P3D%\Prepar3D.exe" "-Configure: Category=Add-on Package, Operation=Remove, Title=SimVariableModule" Then run P3D and after that again register it "%P3D%\Prepar3D.exe" "-Configure: Category=Add-on Package, Operation=Add, Title=SimVariableModule...
  9. Prepar3DGuy

    P3D v4 ISimObject's and the new P3D V4.5 Indago UAV Quad Drone

    The Indago UAS in P3D v4.5 was impelented using PDK and the module is located inside SimObjects\Modules\Quadrocopter.dll library. You can see that sim.cfg file contains CategoryId = GUID. It loads data from xml files as parameters. Properties that exposed in Control directory can be mapped from...
  10. Prepar3DGuy

    P3D v4 how to control the indago UAS from joystick?

    1. You can do it anly with buttons not axis. Current implemenation (%P3D%\SimObjects\Modules\Quadrocopter.dll) has registered control properties like "ThrottleSet", "ThrottleRelease" and etc. with EVENTTYPE_NORMAL (not EVENTTYPE_AXIS). You can set you key assignment (Joystick or Keyboard) in...
  11. Prepar3DGuy

    P3D v4 P3D PDK register property

    First of all we can't see you code, both PDK addon and SimConnect client. I can't tell you are doing right or wrong. As far as I know, your statements are wrong. Properties and Events that you have registered to your SimObject are accessible from SimConnect clients (maybe scripts, I don't sure)...
  12. Prepar3DGuy

    P3D v4 P3D PDK register property

    There are some ways: 1. Create simulation behaviour for your SimObject using ISimulation interface and P3D will process it with specified frequency when instances of your SimObject exists. (Simplest and recommended way) 2. Register static methods as Callbacks to the messages of sim events using...
  13. Prepar3DGuy

    P3D v4 P3D PDK register property

    I'm using Visual Studio 2015 and as far as I know VS2017 works the same. The trick is that VS automatically attach debugger to your dll from project output directory. You don't need to copy it somewhere every time. 1. Has you created add-on.xml file for your dll? For my example above it's copied...
  14. Prepar3DGuy

    P3D v4 P3D PDK register property

    Events for properties in terms of P3D connects name of event with your Set function. I use Visual studio to debug dll. My projects settings are: Debugging -> Command = $(P3D)\Prepar3D.exe Debugging -> Working Directory = $(P3D) note that P3D and P3D_SDK are user variables in Windows that points...
  15. Prepar3DGuy

    P3D v4 P3D PDK register property

    Ok. Try to set Unicode in project settings: General -> Project Defaults -> Character Set = Use Unicode Character Set. And return S_OK for RegisterProperties.
Top