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
thnx in advance