Click to open or copy the DLLserve project files.
Click to open or copy the Include files (required).
Click to open or copy the Library files (required).
Note To use this sample, you must first build the Register sample
The DLLserve sample begins with the automobile COM objects of the COMobj sample and refashions them into components. To do so requires little change to the COM objects themselves (COCar, COUtilityCar, and COCruiseCar). But to make them components, this sample introduces new facilities to house them in a DLL COM server. These facilities include class factories for each component and a CarSample utility component that allows clients to see logged behavior in the server itself.
The DLL server provides the following components: Car, UtilityCar, CruiseCar, and CarSample.
In the series of COM tutorial samples, DLLserve works with the DLLclien code sample to illustrate DLLSserve's COM server facilities for creating components that can be used by an EXE client and the subsequent manipulation of those components by DLLclien.exe.
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:
aboutbox; addref; adjust; cfcar; cfcarsample; cfcruisecar; cfutilitycar; cimpicar; cimpiclassfactory; cimpicruise; cimpisample; cimpiutility; clutch; cocar; cocarsample; cocreateinstance; cocruisecar; coutilitycar; create; createinstance; cserver; defined; delete_pointer; dllcanunloadnow; dllgetclassobject; dllmain; dllregisterserver; dllunregisterserver; engage; failed; getlasterror; getmodulefilename; getusername; interlockeddecrement; interlockedincrement; lock; lockserver; log; logf1; logf2; lstrcat; lstrcpy; lstrlen; makeintresource; objectsdown; objectsup; offroad; queryinterface; regclosekey; regcreatekeyex; regdeletekey; regsetvalueex; release; release_interface; setregkeyvalue; shift; showdialog; speed; stdentry_; stdmethodimp_; steer; stringfromguid2; succeeded; text; unicodeok; unlock; winch; wsprintf