Click to open or copy the COMobj project files.
Click to open or copy the Include files (required).
Click to open or copy the Library files (required).
Note You must build COMobj.DLL before building COMuser.
The COMobj.dll offers several COM object classes, which relate to automobiles. Because COMobj.dll supports no object handlers, class factories, full in-process servers, or marshaling, it is not a full-featured OLE server. Rather, it is a primitive precursor to an OLE in-process server.
This DLL exposes the following COM objects: COCar, COUtilityCar, and COCruiseCar. Appropriate create functions are exported from this DLL: CreateCar, CreateUtilityCar, and CreateCruiseCar.
In this sample, COMobj works with the COMuser code sample to show how an EXE client (COMuser.exe) calls COM object creation services and manipulates the COM objects that are created.
See the parent topic, COM Tutorial Samples, to download global tutorial files or any HTML files about this sample.
This sample uses the following keywords:
addref; adjust; cimpicar; cimpicruise; cimpiutility; clutch; cocar; cocruisecar; comobjaboutbox; comobjinitmsglog; coutilitycar; createcar; createcruisecar; createutilitycar; defined; delete_pointer; dllmain; engage; getlasterror; getusername; log; logf1; makeintresource; offroad; queryinterface; release; release_interface; shift; showdialog; speed; stdentry_; stdmethodimp_; steer; succeeded; unicodeok; winch