FDK allows for defining the following symbols: FAPI_4_BEHAVIOR, FAPI_5_BEHAVIOR, FAPI_55_BEHAVIOR and FAPI_6_BEHAVIOR. What FAPI_*_BEHAVIOR shall be defined for FDK12? I found the follwoing inconsistency:
FIRST:
********
fapi.h defines F_ApiNotify() as follows:
#ifdef FAPI_4_BEHAVIOR
extern VoidT F_ApiNotify FARGS((IntT notification, F_ObjHandleT docId, StringT filename));
#else
externVoidT F_ApiNotify FARGS((IntT notification, F_ObjHandleT docId, StringT sparm, IntT iparm));
#endif
If I look at F_ApiNotify() in FDK 12 Programmer's Reference, I derive that FAPI_4_BEHAVIOR shall NOT be defined.
SECOND:
*************
fapi.h defines F_AttributeDefT as follows:
typedefstruct {
StringT name;
BoolT required;
#ifdef FAPI_5_BEHAVIOR
BoolT readOnly;
#else
UIntT flags;
#endif
IntT attrType;
F_StringsT choices;
F_StringsT defValues;
StringT rangeMin;
StringT rangeMax;
} F_AttributeDefT;
Comparing it with FDK 12 Programmer's Reference, I conclude that FAPI_5_BEHAVIOR shall NOT be defined.
THIRD:
*********
fchannel.h defines F_ChannelOpen() as follows:
#ifdefined(FAPI_5_BEHAVIOR) || defined(FAPI_4_BEHAVIOR)
extern ChannelT F_ChannelOpen FARGS((FilePathT *path, StringT type));
#else
externChannelT F_ChannelOpen FARGS((FilePathT *path, CStringT type));
#endif
Comparing it with FDK 12 Programmer's Reference, I conclude that FAPI_5_BEHAVIOR shall be defined or FAPI_4_BEHAVIOR shall be defined..
THERE IS A CLASH!
**************************
FIRST and SECOND say that none of them shall be defined, THIRD says that one of them shall be defined.
Could somebody give me a hint what symbol shall I define for FDK 12?
Many thanks in advance. Zdenek