Add, delete, and query environment variables in WinCE

Source: Internet
Author: User

There are many environment variables in wince. How do I set/delete/query these environment variables:

1. query environment variables: whether in wince5.0 or wince6.0, when we open or create a project in Pb, click "build"-> "Open release directory in build window" in the menu, and the command line dialog box is displayed. Enter the "set" command in the dialog box, and press enter to view all the environment variables and corresponding values in the current project.

2. add environment variables: You can add environment variables in two ways: click "build"-> "Open release directory in build window", and then add new environment variables in the pop-up dialog box, for example, set wince_test = 1. Add an environment variable named wince_test, whose value is 1. Another method is to add environment variables. Take wince6.0 as an example. In the "Solution Explorer" window, right-click the project name and select "properties ". In the displayed dialog box, select "configuration properties"-> "enviroment", and then add the environment variables in the window on the right.

3. delete environment variables: click "build"-> "Open release directory in build window", and then delete the defined environment variables in the pop-up dialog box, for example, set wince_test =. This statement indicates that the environment variable wince_test is deleted. Another way to delete environment variables is to right-click the project name in the "Solution Explorer" window and select "properties ". In the displayed dialog box, select "configuration properties"-> "enviroment", and then delete the defined environment variables in the window on the right.

4. Environment VariablesCodeFor selective compilation: the code is compiled as follows:

# Ifdef nandflash_ecc

.....

# Endif

The selective loading of platform. Reg is as follows:

If nandflash_ecc

......

Endif

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.