我的编译工具是 vs2008.net
我在系统中已经安装了acrobat 7.0.5sdk 包
参照sdk提供的相应文档。
例如用plugin的方法构造一个avtoolbar。
但是我在系统中没有找到这个plugin提供的dll或者其他形式的typelib。
从 Project-->Add Class-->mfc dll-->这其中的菜单下拉项中也只有sdk本身的lib。我如何才能在我的mfc程序中调用plugin提供的方法和对象呢。
换句话说我如何能够导入或者说使用这个sdk自带的plugin呢?谢谢大家解答了,送高分。

解决方案 »

  1.   

    在Acrobat的安装目录中搜索 AcroPDF.DLL
      

  2.   

    不是这个
    这个没有包括plugin能构造的对象
      

  3.   

    关键是这个库在哪里
    现在就是找不到plugin对应的库
      

  4.   

    这样吧,我把说明文档相应的部分贴上来。
    比如我就想实现这个
    EXAMPLE 6.1 Adding a button to a toolbar
    AVExecuteProc ExecProcPtr;
    AVComputeEnabledProc CompEnabledProcPtr;
    ACCB1 void ACCB2 ExecProc (void* data)
    {
    AVAlertNote ("The Button’s execute proc was
    }
    ACCB1 ASBool ACCB2 ComputeEnabledProc (void*
    {
    ASBool expressionorcondition = true;
    if (expressionorcondition)
    return true;
    else return false;
    }
    ACCB1 ASBool ACCB2 PluginInit (void)
    {
    AVToolBar ToolBar = AVAppGetToolBar ();
    AVToolButton MyButton = NULL;
    AVToolButton oldButton = NULL;
    ExecProcPtr = NULL;
    CompEnabledProcPtr = NULL;
    这个是其中的一段代码。
    AVToolBar
    AVToolBar is Acrobat’s toolbar (the palette of buttons). In Acrobat 4.0 and later, a plug-in can create flyouts that contain additional buttons and attach these flyouts to existing buttons.
    Plug-ins can add buttons to and remove buttons from a toolbar, show or hide toolbars, and (Acrobat 5.0) create new toolbars. Because screen space is limited on many monitors, plug-ins should add as few buttons as possible to toolbars.
    Buttons can be organized into groups of related buttons, with additional space between the groups. It is possible to implement a group in which only one button can be selected at a time. The logic of doing this is the plug-in’s responsibility; the plug-in API does not provide any means to automatically relate one button’s state to another button’s state.
    A plug-in adds buttons to a toolbar by specifying the relative position of the button (before or after) to an existing button.
    Although there appear to be multiple toolbars in the Acrobat 4.0 and higher user interface, there is still only one AVToolBar containing all the buttons that are not on flyouts. A plug-
    AVSysSetWaitCursor
    Turns the wait cursor on or off.
    AVToolGetType
    Gets a tool’s type.
    AVToolIsPersistent
    Indicates whether a tool is persistent or is one shot.
    Acrobat Viewer (AV) Layer
    AVToolButton
    6
    296 Acrobat and PDF Library API Overview
    in controls the toolbar upon which a button will appear by placing the button next to an existing one already in the appropriate location. The AVToolBar methods includ
    这个是对它的描述
    我想调用这个生成一个自己的avtoolbar
    但是怎么才能正确的调用它呢
      

  5.   

    试试 使用SDK自带的tool,用其中的plugin向导
      

  6.   

    如果是入门的话,可以参照这篇文章:
    http://blog.csdn.net/davil_dev/article/details/7793849
    如果知道怎么写,sdk中的帮助文档写的很详细了。