zoukankan      html  css  js  c++  java
  • Automation Clients

    Automation Clients

      Automation makes it possible for your application to manipulate objects implemented in another application, or to expose objects so they can be manipulated. An automation client is an application that can manipulate exposed objects belonging to another application. The application that exposes the objects is called the Automation server. The client manipulates the server application’s objects by accessing those objects’ properties and functions.

      There are two types of Automation clients:

    • Clients that dynamically (at run time) acquire information about the properties and operations of the server.

    • Clients that possess static information (provided at compile time) that specifies the properties and operations of the server.

      Clients of the first kind acquire information about the server’s methods and properties by querying the OLE system’s IDispatch mechanism. Although it is adequate to use for dynamic clients, IDispatch is difficult to use for static clients, where the objects being driven must be known at compile time. For static bound clients, the Microsoft Foundation classes provide the class along with ClassWizard support.

      Static bound clients use a proxy class that is statically linked with the client application. This class provides a type-safe C++ encapsulation of the server application’s properties and operations.

      The class COleDispatchDriver provides the principal support for the client side of Automation. Using ClassWizard, you create a class derived fromCOleDispatchDriver.

      You then specify the type-library file describing the properties and functions of the server application’s object. ClassWizard reads this file and creates theCOleDispatchDriver-derived class, with member functions that your application can call to access the server application’s objects in C++ in a type-safe manner. Additional functionality inherited from COleDispatchDriver simplifies the process of calling the proper Automation server.

  • 相关阅读:
    C# String 前面不足位数补零的方法
    bootstrap-wysiwyg这个坑
    PRECONDITION_FAILED
    JdbcTemplate in()传参
    Mysql Specified key was too long; max key length is 767 bytes
    获取两日期之前集合并转为String类型的集合
    SQL里的concat() 以及group_concat() 函数的使用
    spring boot如何打印mybatis的执行sql
    MockMvc 进行 controller层单元测试 事务自动回滚 完整实例
    找到 Confluence 6 的日志和配置文件
  • 原文地址:https://www.cnblogs.com/tekkaman/p/2585346.html
Copyright © 2011-2022 走看看