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(g PlaneV) != 1026)
XPLMSetDatai(gP laneV, 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(g PlaneV) != 1026)
XPLMSetDatai(gP laneV, 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
Comment