(A Preliminary Study of COM Technology (1) Contents 1. COM is a better C 1. What is COM 2. From C to DLL to COM2.1C 2.2DLL2.3COM2.COM Basics 1.COM Basics 1.1 Return value HRESULT1.2 First acquaintance with idl1.3IUnkown interface 2. A relatively simple COM2.1interface.h file 2.2math.h file 2.3math.cpp file 2.4simple.cpp file 2.5The binary structure of the Math component 2.6 Summary 3. Pure Manually create a COM component 1. From the construction of the project to the realization of registration 1.1 Create a type of win32dll project 1.2 Define the interface file 1.3 Add the registration function 1.3.1 Add a MathCOM.def file 1.3.2DllRegisterServer() and DllUnregisterServer()1.4MathCOM.cpp Document 1.5 Summary 2. Implement ISmipleMath, IAdvancedMath interface and DllGetClassObject() 2.1 Implement ISmipleMath and IAdvancedMath interface 2.2 COM component calls the general process 2.3 DllGetClassObject() implementation 2.4 Client 2.5 Summary 3. Class Factory Appendix A My little understanding of dll 1 .dll without lib This document includes the following attachments:
A Preliminary Study of COM Technology.pdf
Including multiple files, please download and test by yourself!)