PDK DIS Manager

Any issues, problems or troubleshooting topics related to the additional features present in the Prepar3D Professional Plus client application.
Post Reply
mindfog
Posts: 1
Joined: Thu Mar 31, 2022 1:36 pm

PDK DIS Manager

Post by mindfog »

Hello,

I am trying to develop a plugin which utilizes DIS, but I can't event get a valid handle it seems. In the docs it says IDISManager is provided by IPdk, and I try to query it like below but QueryService call fails.

Code: Select all

STDMETHODIMP_(void) DLLStart(__in __notnull IPdk* pPdk)
{
	...
	if (FAILED(pPdk->QueryService(SID_DISManager, IID_IDISManagerV520, (void**)&dis)))
	{

	}
	...
}
I am pretty new to the SDK, could you point out what I'm doing wrong?

Prepar3D version: 5.1.12.26829 / Professional Plus Licensed
SDK version: 5.3.12.28072
Clifton Crane
Lockheed Martin
Posts: 1207
Joined: Tue Sep 25, 2012 2:34 pm

Re: PDK DIS Manager

Post by Clifton Crane »

Hi mindfog,

It looks like you have a version mismatch between your SDK and the Prepar3D installation. Your SDK is newer than the runtime, and therefore the interface you are querying for is unavailable. You can either update your Prepar3D installation to match the SDK, or query for the latest version of the interface that is available in v5.1. This would be IDISManagerV450.

Regards,
Clifton
Clifton Crane
Prepar3D® Software Engineer Sr.
Post Reply