COM Component Design and Application-instructor Yang's album

Source: Internet
Author: User
COM Component Design and Application-instructor Yang's album
  • COM Component Design and Application (18) -- attribute package
  • COM Component Design and Application (17th) -- continuity
  • COM Component Design and Application (16) -- connection point (vc.net)
  • COM Component Design and Application (15th) -- connection point (vc6.0)
  • COM Component Design and Application (14) -- event and notification (vc.net): The functions completed by the sample program in this example are as follows:
    Start the client component (simple11.ievent1.1) and obtain the interface pointer ievent1 *;
    Call the interface method ievent1: advise () to pass a sink interface pointer (icallback *) inside the client to the component server;
    Call ievent1: add () to calculate the sum of two integers;
    However, the calculation result is returned to the client through icallback: fire_result () instead of using this function;
    When the client no longer needs to accept the event, call ievent1: unadvise () to disconnect from the component.
  • COM Component Design and Application (13) -- events and notifications (vc6.0)
  • COM Component Design and Application (12) -- error and Exception Handling: isupporterrorinfo, _ com_error
  • COM Component Design and Application (11) -- call of idispatch and dual interfaces: the use of automated components includes: calling in scripts, calling through APIS, and using the smart pointer packaging class of ccomdispatchdriver, use MFC to load the Type Library packaging, use # import to load the Type Library
  • COM Component Design and Application (10) -- idispatch interface for VC. Net: detailed steps for using MFC and ATL to implement automated components
  • COM Component Design and Application (9) -- idispatch interface for vc6.0
  • COM Component Design and Application (8)-implement multiple interfaces
  • COM Component Design and Application (7) -- Compilation, registration, and call
  • COM Component Design and Application (6) -- Use ATL to write the first component. Net: Create an ATL Project, add an ATL Object Class, add an interface function, and implement an interface function
  • COM Component Design and Application (5) -- Use ATL to write the first component:
  • COM Component Design and Application (4)-simple call component: Example 1. Obtain the progid from CLSID; example 2. How to Select a dialog window using "Browse folder; example 3: display a jpg image in the window; example 4: Create a shortcut on the desktop
  • COM Component Design and Application (3) -- Data Type: Return Value of the hresult function, Unicode, BSTR, conversion between various string types, Variant
  • COM Component Design and Application (2) -- guid and interface: 1. Preface 2. CLSID concept 3. Generate CLSID 4. progid CONCEPT 5. Interface) 6. interface concept 7. negotiation between customer programs and components
  • COM Component Design and Application (1) -- Origin and composite file: Example 1: Create a composite file, create a sub-store under it, and create another stream in the sub-store, write Data. Example 2: open a composite file and enumerate all objects under its root storage. Composite files and structured storage are the origins of Microsoft's component ideas. On this basis, they continue to develop persistence, naming, ActiveX, object embedding, and on-site activation ...... A series of new technologies and new concepts. So understandAndMastering composite files is very important. Even if you do not fully use the component technology in your program, composite file technology can be applied independently.

     

  • Some advanced use methods of the IE control
  • Plot the curve of any plane function using ATL ActiveX
  • ATL implements customized IE browser bar, toolbar, and desktop Toolbar
  • Dom application-Traverse elements in a web page
  • On programming methods
  • Manipulate MS word 123 in Visual C ++
  • Full-text information retrieval and algorithm analysis
  • Implementation of the lpdispatch attribute of the idispatch Interface
  • I can't do it, but I can't think of it-some interesting methods to use the IE control
  • Allows your program to execute scripts as well.

    Ihtmldocument2 interface pointer: According to the running mode of IE browser, there are many different ways to get the document pointer. <1> if you use the chtmlview of MFC in a program to view the webpage. The easiest way to get the document is to call the chtmlview: gethtmldocument () function. <2> if your program uses the ActiveX control of "Web Browser.
    The document retrieval method is also relatively simple. Call the cwebbrowser2: getdocument () function. <3> if your program is an ActiveX control written in ATL. Call ioleclientsite: getcontainer to obtain the iolecontainer interface. Then, you can obtain the ihtmldocument2 interface through QueryInterface () query. The main code is as follows:

  • Contact Us

    The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

    If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.