Click to open or copy the INPROC project files.
INPROC is an in-process Automation (formerly OLE Automation) server. Unlike the other automation server samples provided, INPROC can be loaded as a dynamic-link library (DLL) in the client's address space. This sample uses the native compiler COM support. See the MFC INPROC sample for more information.
The differences between this sample and the MFC sample with the same name are:
With the Visual C++ native compiler COM support, the resulting sample code is shorter and more efficient. The MFC-based INPROC sample uses dispinterfaces only. Compare this sample with the MFC version to see the differences in source code.
This sample demonstrates the following keywords:
dispinterface; #import; _com_ptr_t; _variant_t; _bstr_t; _com_error.
See also Compiler COM Support, MFC INPROC sample.