Skip to main content
Participant
April 24, 2014
Question

FDK: #define FAPI_*_BEHAVIOR

  • April 24, 2014
  • 1 reply
  • 306 views

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

extern VoidT 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:

typedef struct {

          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:

#if defined(FAPI_5_BEHAVIOR) || defined(FAPI_4_BEHAVIOR)

extern ChannelT F_ChannelOpen FARGS((FilePathT *path, StringT type));

#else

extern ChannelT 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

This topic has been closed for replies.

1 reply

Jeff_Coatsworth
Community Expert
Community Expert
April 24, 2014

Might find more help in the Scripting forum - http://forums.adobe.com/community/framemaker/extendscript?view=overview