I cant get the IDISManagerV450.

reyad__007
Posts: 5
Joined: Mon Oct 22, 2018 3:17 am

I cant get the IDISManagerV450.

Postby reyad__007 » Wed Aug 28, 2019 9:59 am

I cant get the IDISManagerV450.ex:
CComPtr<IBaseObjectV400> spUserObject;
CComPtr<IDISManagerV450> spDISManager;
HRESULT hr;
hr = PdkServices::GetSimObjectManager()->GetUserObject(&spUserObject);
if (hr == S_OK)
{
hr = spUserObject->QueryService(SID_DISManager,IID_IDISManagerV450, (void**)& spDISManager);
}
Regards
Reyad

BenBaron
Posts: 72
Joined: Fri Jan 16, 2015 7:51 am

Re: I cant get the IDISManagerV450.

Postby BenBaron » Wed Aug 28, 2019 5:04 pm

Hi Reyad,

I assume you have P3D Professional Plus? As it states *Professional Plus Only* in the SDK.

All the best, Benny

Clifton Crane
Lockheed Martin
Posts: 988
Joined: Tue Sep 25, 2012 2:34 pm

Re: I cant get the IDISManagerV450.

Postby Clifton Crane » Wed Aug 28, 2019 7:22 pm

Hi Reyed,

The IDISManagerV450 interface is a PDK service. You will want to QueryService the PDK instead of the IBaseObject interface.
Clifton Crane
Prepar3D® Software Engineer

MicMac44
Posts: 18
Joined: Fri Feb 15, 2019 5:48 pm

Re: I cant get the IDISManagerV450.

Postby MicMac44 » Mon Oct 21, 2019 2:51 pm

Is there a quick example of setting up the OnReceive() and OnSend() callbacks in the IPduCallbackV440 class?


Return to “Software Development Kit (SDK) Questions”

Who is online

Users browsing this forum: No registered users and 4 guests