JMW
Aspiring Addon Developer
Got another elusive query (for me):blush::
Can't find anything in threads on oapiGetNavDescr.
Why shouldn't this work?
global
If I make int maxlen global and give it NULL, prints as "NULL".
If compile as code above, it ctd.
What am I doing wrong please?
Can't find anything in threads on oapiGetNavDescr.
Why shouldn't this work?
global
Code:
char *descr2;
Code:
bool InputTarget(void *id, char *bstr, void *user_data)
{
.......................
VESSEL3 *vessel = (VESSEL3*)oapiGetFocusInterface();
int maxlen = 256;
NAVHANDLE n = vessel->GetNavSource(0);
oapiGetNavDescr (n, descr2, maxlen);
sprintf(oapiDebugString(),"NAV ILS %s ",descr2);
If I make int maxlen global and give it NULL, prints as "NULL".
If compile as code above, it ctd.
What am I doing wrong please?