Step One: Creating the Project

The MinMaxShip component is a Component Object Model (COM) object that exposes a set of COM interfaces to the order processing pipeline (OPP). To create this project in Visual C++ 5.0, you use the COM App Wizard.

To create the MinMaxShip project
  1. In the Developer Studio environment, on the File menu, click New , and then click the Projects tab.
  2. Select the ATL COM AppWizard option.
  3. Type MinMaxShip as the project name.

    Your dialog box should look like this:

  1. Click OK. The ATL COM App Wizard presents a dialog box offering several choices to configure the initial ATL project.

  1. Because you are creating a modified ASP component, leave the Server Type as DLL; a control must be an in-process server. All the default options are fine, so click Finish.

    A dialog box appears that lists the main files that will be created. These files are listed in the following table, along with a description of each file that the ATL COM AppWizard generates.
    File Purpose
    MinMaxShip.cpp, MinMaxShip.h Contains the implementation of DllMain, DllCanUnloadNow, DllGetClassObject, DllRegisterServer and DllUnregisterServer. Also contains an object map, which is a list of the ATL objects in your project. This is initially blank, because you have not created an object yet.
    MinMaxShip.def Standard Windows module definition file.
    MinMaxShip.dsw Project workspace.
    MinMaxShip.dsp File that contains the project settings.
    MinMaxShip.idl Interface definition language file, which describes the interfaces specific to your objects.
    MinMaxShip.rc Resource file, which initially contains the version information and a string containing the project name.
    Resource.h Header file for the resource file.
    MinMaxShip.mk Make file that can be used to build a proxy/stub DLL. You will not need to use this.
    MinMaxShipps.def Module definition file for the proxy/stub DLL.
    StdAfx.cpp Fill that will #include the ATL implementation files.
    StdAfx.h File that will #include the ATL header files.

  2. Click OK. The files are created.

© 1997-1998 Microsoft Corporation. All rights reserved.