• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

FDK: #define FAPI_*_BEHAVIOR

New Here ,
Apr 24, 2014 Apr 24, 2014

Copy link to clipboard

Copied

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

Views

273

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Apr 24, 2014 Apr 24, 2014

Copy link to clipboard

Copied

LATEST

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

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines