MFC Smart Device ActiveX Control Wizard
Describes the MFC Smart Device ActiveX Control Wizard.
An ActiveX control is a specific type of Automation Servers; it is a reusable component. The application hosting the ActiveX control is the Automation Clients of that control. If your goal is to create a reusable component, then use this wizard to create your control. See MFC ActiveX Controls for more information.
Alternately, you can create an automation server MFC smart device application using the MFC Smart Device Application Wizard.
The MFC starter program includes C++ source (.cpp) files, resource (.rc) files, and a project (.vcproj) file. The code generated in these starter files is based on MFC.
Overview
The wizard page describes the current application settings for the MFC ActiveX control project you are creating. By default, the wizard creates the project as follows:
The default target platform for the project is the first platform in the platforms' list. In a default installation, the default platform is Pocket PC 2003. By installing and uninstalling Windows CE 5.0 SDKs, you can change the default target for new applications and/or add other platforms such as Smartphone 2003.
The default project generates no run-time license.
The project includes a control class and a property page class, based on the name of the project.
The control is based on no existing Windows CE control, activates when it becomes visible, has a user interface, and includes an About dialog box.
To change the target platform, click Platforms in the left column of the wizard and make the desired changes.
To change the application settings, click Application Settings in the left column of the wizard and make the desired changes.
To change the control names, click Control Names in the left column of the wizard and make the desired changes.
To change the control settings, click Control Settings in the left column of the wizard and make the desired changes.
After creating your new project, if the compiler issues a warning on defining _CE_ALLOW_SINGLE_THREADED_OBJECTS_IN_MTA, you have to define this flag in your main header file.
#define _CE_ALLOW_SINGLE_THREADED_OBJECTS_IN_MTA
This is the case especially for scenarios such as creating COM objects on Windows Mobile platforms, consuming Web services in Windows Mobile, and ATL COM objects.