Search found 80 matches

by BenBaron
Mon Dec 17, 2018 8:27 pm
Forum: Software Development Kit (SDK) Questions
Topic: [RESOLVED] PDK Sound Service Instance -> Play() Function
Replies: 24
Views: 20899

Re: PDK Sound Service Instance -> Play() Function

As far as playing your sound as Environment in 3D, be sure that you have correctly set the position of the sound as it will default to 0,0,0. Thanks Clifton...I noticed I did a stupid mistake there and used SetOrientation instead of SetPosition on the SoundInstance. Now, it all works like a charm. ...
by BenBaron
Mon Dec 17, 2018 7:09 pm
Forum: Software Development Kit (SDK) Questions
Topic: [RESOLVED] PDK Sound Service Instance -> Play() Function
Replies: 24
Views: 20899

Re: PDK Sound Service Instance -> Play() Function

Jim, I started implementing the SoundService and I am also seeing the HRESULT 0x887800aa on the first call to IsPlaying(). Nevertheless, I can call Play() on the SoundInstance which also becomes audible and all subsequent calls to IsPlaying() return either S_OK or S_FALSE, as expected. So not much o...
by BenBaron
Sun Dec 16, 2018 8:46 pm
Forum: Software Development Kit (SDK) Questions
Topic: [RESOLVED] PDK Sound Service Instance -> Play() Function
Replies: 24
Views: 20899

Re: PDK Sound Service Instance -> Play() Function

Hi Jim, I "might" be fiddeling around with the SoundService and with its instances over the next week for a project of ours, so everything I discover or every problem I'm gonna stumble over, I'm gonna relay here. But I'd say that you shouldn't need to AddRef manually on the CComPtr in order for it t...
by BenBaron
Sun Dec 16, 2018 11:18 am
Forum: Software Development Kit (SDK) Questions
Topic: [RESOLVED] PDK Sound Service Instance -> Play() Function
Replies: 24
Views: 20899

Re: PDK Sound Service Instance -> Play() Function

Hi, I haven't fiddeled around with the SoundService, yet, but the QueryInterface does something different from my understanding and doesn't have something to do with what you're trying to achieve. It is used to query for a different version of an existing interface. So you could directly query the p...
by BenBaron
Thu Dec 06, 2018 11:46 pm
Forum: Software Development Kit (SDK) Questions
Topic: [RESOLVED] Mouse click coords
Replies: 10
Views: 8798

Re: Mouse click coords

Hi Jean Luc, did you take a look into the PDK documentation? The "Window and Camera Services" could provide you with answers. I guess, you could implement your own version of IWindowPlugin on an IWindow, intercept the mouse click window messages and work from there. I don't know if there is an easie...
by BenBaron
Tue Nov 27, 2018 1:47 pm
Forum: Software Development Kit (SDK) Questions
Topic: [RESOLVED] Desperately trying to make SimConnect with C ++ work in managed code
Replies: 11
Views: 9810

Re: Desperately trying to make SimConnect with C ++ work in managed code

Mario, mhh..thats weird..I now even tried and converted my project from .dll to .exe even then, running externally, I am perfectly receiving the OnRecvOpen and OnRecvClose calls sent from the SimConnect server. To be honest, I don't know where to start looking on your side. I would offer to just sen...
by BenBaron
Mon Nov 26, 2018 3:02 pm
Forum: Software Development Kit (SDK) Questions
Topic: [RESOLVED] Desperately trying to make SimConnect with C ++ work in managed code
Replies: 11
Views: 9810

Re: Desperately trying to make SimConnect with C ++ work in managed code

Hi Mario, as I was curious, I just did a small quick and dirty test with a C++/CLI dll loaded by P3D and managed to get the SimConnect server sending messages to my DefWndProc. I don't know if those things really are the causing problems at your side, but here is what I made different: 1. I didn't l...
by BenBaron
Sat Nov 24, 2018 7:46 am
Forum: Software Development Kit (SDK) Questions
Topic: [RESOLVED] Desperately trying to make SimConnect with C ++ work in managed code
Replies: 11
Views: 9810

Re: Desperately trying to make SimConnect with C ++ work in managed code

Hi Mario, I can see the point, where using WinForms and P3D in conjunction with C++/CLI in an internal scenario might come in usefull , so maybe I will do some experimenting next week and come back to you. Of course it would be nice to know, if this can be worked out. Maybe, unil then, some of the d...
by BenBaron
Thu Nov 22, 2018 11:28 am
Forum: Software Development Kit (SDK) Questions
Topic: [RESOLVED] Desperately trying to make SimConnect with C ++ work in managed code
Replies: 11
Views: 9810

Re: Desperately trying to make SimConnect with C ++ work in managed code

Hi Mario, not that I am an expert on the matter, but if you're trying to write a purely external program in connection with WinForms and SimConnect, why do you want to use C++/CLI, in the first place? Why not sticking with C#, which is completely managed and where a SimConnect wrapper is available? ...
by BenBaron
Wed Nov 21, 2018 9:16 am
Forum: Software Development Kit (SDK) Questions
Topic: [RESOLVED] PDK IAnimationControllerV01
Replies: 3
Views: 6007

Re: PDK IAnimationControllerV01

Hi all, in conjunction with the resolution of http://www.prepar3d.com/forum/viewtopic.php?f=6311&t=131539 this problem here got also solved. In case anyone gets is in the same position of trying to understand QueryService, this is, how it is supposed to be done: CComPtr<P3D::IBaseObjectV400> baseObj...
by BenBaron
Wed Nov 21, 2018 8:54 am
Forum: Software Development Kit (SDK) Questions
Topic: [RESOLVED] Query the PDK for ISurfaceQueryManagerV400
Replies: 2
Views: 4007

Re: Query the PDK for ISurfaceQueryManagerV400

Thanks very much, Mike, for clarifying this.

Now, I really get the purposes of QueryInterface and QueryService and their respective parameter lists.

And, as expected, it now works like a charm.

All the best to you,

Benny
by BenBaron
Tue Nov 20, 2018 10:03 am
Forum: Software Development Kit (SDK) Questions
Topic: Help to undertanding a lua script from P3D V4 SDK
Replies: 7
Views: 6980

Re: Help to undertanding a lua script from P3D V4 SDK

Hi Luis, I don't understand what exactly you are asking for with the "expected practical effect". Yes, in the example local secondsPerDay = 60 * 60 * 24 local percentOfDay = varget("E:LOCAL TIME", "Number") / secondsPerDay gives you the actual simulator time of day in percent and local temperatureSc...
by BenBaron
Sun Nov 18, 2018 11:17 am
Forum: Software Development Kit (SDK) Questions
Topic: [RESOLVED] Query the PDK for ISurfaceQueryManagerV400
Replies: 2
Views: 4007

[RESOLVED] Query the PDK for ISurfaceQueryManagerV400

Hi all, although I've already touched briefly on this subject in another thread, I thought it might be best to start a new one for this, specifically. Is anyone able to get the above mentioned service? The SDK reads "General surface queries, not associated with a specific object. This service interf...
by BenBaron
Thu Nov 15, 2018 7:07 pm
Forum: Software Development Kit (SDK) Questions
Topic: [RESOLVED] when I call Pdk::Init(), many devices are NULL
Replies: 4
Views: 5116

Re: when I call Pdk::Init(), many devices are NULL

Hi Steve,

just a quick one, but the most recent version is Prepar3D 4.3.29.25520 for core and the SDK. With this one I am getting those services, so maybe it has something to do with you not getting them.

Any reason, why you didn't upgrade, yet?

Greets, Benny
by BenBaron
Thu Nov 15, 2018 1:09 pm
Forum: Software Development Kit (SDK) Questions
Topic: [RESOLVED] when I call Pdk::Init(), many devices are NULL
Replies: 4
Views: 5116

Re: when I call Pdk::Init(), many devices are NULL

Hi Steve, I guess you'd need to show some more code, as I am able to get these two on my side. Just doing a quick and dirty: auto windowPluginSystem = PdkServices::GetWindowPluginSystem(); auto renderingPluginSystem = PdkServices::GetRenderingPluginSystem(); shows both of them populated. Does PdkSer...

Go to advanced search