How to: Create a New Visual C++ Device Project
There are a couple of significant differences between creating device projects and creating desktop projects:
A subset of the desktop project templates is supported for devices. You can see these templates when you perform the following procedure.
In the application wizard of the project you choose to create, you will need to select one or more platforms to target from the list provided on the Platform page of the wizard. This platform list is generated based on the SDKs that you currently have installed.
Note
If the compiler issues a warning about defining CE_ALLOW_SINGLE_THREADED_OBJECTS_IN, define_CE_ALLOW_SINGLE_THREADED_OBJECTS_IN_MTA, define the flag in stdafx.h. To do so, open stdafx.h header file and add #define _CE_ALLOW_SINGLE_THREADED_OBJECTS_IN_MTA near the top of the file.
To create a Visual C++ device project
On the File menu, point to New, and click Project.
In the Project Types pane, expand Visual C++, and then click Smart Device.The Templates pane displays all of the supported project templates for devices.
Click the project template that you want to use.
In the Name box, type a name for your project, and click OK.
Use the application wizard to finish creating your project.
See Also
Tasks
Creating Projects with Application Wizards