PDK poperties not registering

For topics related to the creation of simulation objects (SimObjects). This includes development of aircraft, ground, and maritime vehicles.
Posts: 31
Joined: Sat Dec 01, 2018 1:29 pm

PDK poperties not registering

Postby redouane_bpw » Mon Jul 29, 2019 7:04 pm

i followed the SDK docs and even coped/pasted a sample code and i'm still getting this error when i try to register a property in visual studio

Severity Code Description Project File Line Suppression State
Error (active) E0304 no instance of overloaded function "P3D::ISimObjectManagerV400::RegisterProperty" matches the argument list %FilePath% 123

and here is the code

Code: Select all

HRESULT RegisterProperties(__in __notnull ISimObjectManagerV400* pSimObjectMgr) { pSimObjectMgr->RegisterProperty(GetClassId(), TEXT("stuff"), TEXT("you"), MyClass::Get); } //this is inside MyClass (the registered simobject) double v; static STDMETHODIMP Get(__in const ISimObject& Sim, __out double& dProperty, __in int iIndex) { dProperty = static_cast<const MyClass&>(Sim).v; return S_OK; } //the naming is just for test
if there is an other way to create LVars or CVars and to interact with events without the simobject, it will be much welcomed

thnx in advance

Return to “Simulation Object Development Questions”

Who is online

Users browsing this forum: No registered users and 4 guests