Creating a Project

To create a custom component using the ATL Pipeline Component Wizard, you must first create an active project. To create a project in Visual C++ version 6.0, you use the ATL COM App Wizard.

To create a project in Visual C++

  1. Click Start, point to Programs, point to Microsoft Visual C++, and then click Visual C++.

  2. On the File menu, click New, and then select the Projects tab.

  3. On the Projects tab, select ATL COM App Wizard, and then do the following:

    Use this To do this
    Project name Type a name for the project.
    Location Type the path to the location where the project will be saved.
    Create new workspace Select to create a new skeleton project.
    Add to current workspace Select to add on to an existing project.
    Platforms Keep the default, which is WIN32.
  4. Click OK.

  5. In the ATL COM App Wizard - Step 1 of 1 dialog box, do the following:

    Use this To do this
    Server Type Select one of the following:
    • Dynamic Link Library (DLL)

    • Executable (EXE)

    • Service (EXE)

    Ee797516.note(en-US,CS.10).gif Note

    • If you are creating a modified ASP component, leave the Server Type as DLL because a control must be an in-process server.
    Allow merging of proxy/stub code Specify that proxy/stub code be merged into your main project (available for DLL projects only). By default, the proxy/stub marshaling code is contained in a separate DLL.
    Support MFC Specify that your object includes Microsoft Foundation Classes (MFC) support, and the MFC libraries will be attached to your code (available for DLL projects only).
    Support MTS Specify the support for Microsoft Transaction Server (MTS) by adjusting the project build settings.
  6. Click Finish.

    The New Project Information dialog box appears, which lists the files that will be created for your project. These files and their descriptions are listed in the following table.

    File extension Description
    .dsp File that contains the project settings.
    .cpp File that contains the implementation of the following methods:
    • DllMain

    • DllCanUnloadNow

    • DllGetClassObject

    • DllRegisterServer

    • DllUnregisterServer

    This file also contains an object map, which is a list of the ATL objects in your project. This is initially blank, because you have not yet created an object.

    .idl An interface definition language file, which describes the interfaces specific to your objects.
    .mk A make file that can be used to build a proxy and stub DLL.
  7. Click OK.

    The project you created appears in the Visual C++ Workspace window.

  8. To save your workspace, from the File menu, click Save Workspace.

See Also

Adding an Object

Deciding Which Interface to Expose

Enhancing Component Usability

Implementing the IPipelineComponent Interface

Registering the ATL Component

Active Template Library

MinMaxShip Sample Pipeline Component


All rights reserved.