The following procedure describes values you will enter into the various AppWizard dialog boxes in order to create the AutoClik starter files.
To create a starter Automation server application
The New dialog box appears.
AutoClik
.AppWizard will create a project directory with this name under the main (root) directory specified in the Location box.
AppWizard creates the project directory and the MFC AppWizard – Step 1 dialog box appears.
The Advanced Options dialog box appears, with the Document Template Strings tab selected.
ack
.The specified file extension is reflected in the Filter Name box.
AutoClick.Document
.This identifier is initially created by AppWizard, based on the project name. The client application (such as Autodriv) uses this name to access the Automation object, or dispatch interface. This name corresponds to the regFileTypeID string in the CDocTemplate::GetDocString function.
This string gets displayed in the title bar of the running application.
Notice that the change is reflected in the File new name (short name) box as well. This name corresponds to the fileNewName string in CDocTemplate::GetDocString.
Note The File Type ID and Doc Type Name strings are discussed further in the next topic, Analyzing the Dispatch Interface Name.
You may be prompted with the following message:
“A unique class ID already exists in the registration database for this document type. Use existing ID?”
This message appears if you ran the Step 3 version of AutoClik. Running AutoClik adds an entry to the registry for its document type (AutoClick.Document).
The New Project Information dialog box appears, summarizing the settings and features AppWizard will generate for you when it creates your project.
You might want to take a moment to examine the application type, classes, and features that AppWizard automatically provides.
AppWizard creates all necessary files and opens the AutoClik project.