Pavel Yosifovich introduces a video tutorial on creating a simple COM server implemented within a DLL, building upon a previous video about COM client programming. He recaps the process of a client calling CoCreateInstance, which leads to the DLL being loaded and DllGetClassObject being called to return a class factory. The class factory, implementing IClassFactory, then creates the actual COM object, an RPMCalc (Reverse Polish Notation calculator). The video focuses on implementing the server side, including the DLL, class factory, and the COM class, using COM APIs. Pavel sets up a new DLL project in Visual Studio, creates the RPNCalculator class, and begins implementing the IRPNCalculator interface with push, pop, add, subtract, multiply, divide, and isEmpty functions, along with the necessary COM methods like AddRef, Release, and QueryInterface. He also discusses the implementation of a class factory (RPNCalcCF) and the DllGetClassObject function, which are essential for COM object creation and management.
Sign in to continue reading, translating and more.
Continue