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