Microsoft KB Archive/265721

= DOC: /CEConfig Switch Builds Incorrect Platform =

Article ID: 265721

Article Last Modified on 8/19/2005

-

APPLIES TO


 * Microsoft Office Keyboard

-



This article was previously published under Q265721



SUMMARY
When you use the products listed above to build a project from the command line, the /CEConfig= switch is used to select the target platform. This switch is case sensitive and is followed by an equal sign (=). The online documentation incorrectly implies that the switch is case insensitive and does not contain an equal sign (CEConfig).



MORE INFORMATION
When you build a project from the command line, the build defaults the target device to the WCE Configuration that was last used when the respective workspace was closed. You can observe the platform that is being targeted in the build steps. For example, if you disable banner suppression (remove/nologo) for the compiler in a C++ project that was last built for Pocket PC, you see several variables, including the following:

/D _WIN32_WCE=300 /D &quot;WIN32_PLATFORM_PSPC&quot;

If you then build the project and specify the H/PC Pro 2.11 Windows CE configuration as illustrated in the documentation, these build parameters do not change and a Pocket PC executable is produced.

If you implement the solution in this article, the desired platform is correctly selected. For example, to rebuild all configurations for project &quot;TEST&quot; targeting the Handheld PC Professional 3.0 platform, use the following command line:

EVC test.vcp /MAKE &quot;ALL&quot; /CEConfig=&quot;H/PC Pro 2.11&quot; /REBUILD

The previously mentioned build variables should reflect the proper platform:

/D _WIN32_WCE=211 /D &quot;WIN32_PLATFORM_HPCPRO&quot;

Keywords: kbbug kbdocerr kbpending KB265721

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.