M
Michael Sgier
Hi
Declaration:
XPLM_API XPLMDataRef XPLMFindDataRef(
const char * inDataRefName);
Does this return a pointer?
So I try this:
XPLMDataRef gPlaneV = NULL;
gPlaneV = XPLMFindDataRef("sim/graphics/view/view_type");
if (XPLMGetDatai(gPlaneV) != 1026)
XPLMSetDatai(gPlaneV, 1026);
But this doesn't work. If the declaration returns a pointer so how can I
set it's value ( integer ) to 1026?
Many thanks and regards
Michael
Declaration:
XPLM_API XPLMDataRef XPLMFindDataRef(
const char * inDataRefName);
Does this return a pointer?
So I try this:
XPLMDataRef gPlaneV = NULL;
gPlaneV = XPLMFindDataRef("sim/graphics/view/view_type");
if (XPLMGetDatai(gPlaneV) != 1026)
XPLMSetDatai(gPlaneV, 1026);
But this doesn't work. If the declaration returns a pointer so how can I
set it's value ( integer ) to 1026?
Many thanks and regards
Michael