Previous in Contents Next in Contents

Building a CPC

You can use the following sample source files (located in the \CPC\sample directory) to set up your component's DLL, access the component IClientPaymentProvider and IWalletCallback interfaces, and make changes to the registry.

File name Function
common.h Header file that sets the macros for checking error codes. Provides entry keys for registering the CPC with the Payment Selector.
cpcinst.cpp Contains all interfaces used during installation of the CPC.
CPCPlugIn.cpp ATL-generated file that handles DLLMain integration and MFC CWinApp creation. This file has been modified for MFC threading support.
sdkobj.def ATL Wizard–created CPC .def file.
cpcbject.mak Make file generated by the CPC project.
CPCPlugIn.idl File that defines the CPC object, which is read by the MIDL compiler.
CPCPlugIn.rc CPC resource file.
CPCObject.cpp Implements the member functions of the CPC interfaces.
regutil.cpp Implements a generic registry class that registers the CPC.
utility.cpp Defines simple utility routines used by the CPC object.


© 1997-2000 Microsoft Corporation. All rights reserved.