COM Component Design and Application (18) -- attribute packageCOM Component Design and Application (17th) -- continuityCOM 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_errorCOM 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 LibraryCOM Component Design and Application (10) -- idispatch interface for VC. Net: detailed steps for using MFC and ATL to implement automated componentsCOM Component Design and Application (9) -- idispatch interface for vc6.0COM Component Design and Application (8)-implement multiple interfacesCOM Component Design and Application (7) -- Compilation, registration, and callCOM 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 functionCOM 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 desktopCOM Component Design and Application (3) -- Data Type: Return Value of the hresult function, Unicode, BSTR, conversion between various string types, VariantCOM 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 componentsCOM 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 controlPlot the curve of any plane function using ATL ActiveXATL implements customized IE browser bar, toolbar, and desktop ToolbarDom application-Traverse elements in a web pageOn programming methodsManipulate MS word 123 in Visual C ++Full-text information retrieval and algorithm analysisImplementation of the lpdispatch attribute of the idispatch InterfaceI can't do it, but I can't think of it-some interesting methods to use the IE controlAllows 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: |