1. Decompress ace.zip, for example, decompress it to C :/
2. Locate the location of the ace_wrappers directory, for example, C:/ace_wrappers.
3. Create an ace_root environment variable in the system and set it to C:/ace_wrappers.
Specific settings: My computer-properties-advanced-environment variables-New
4. Open the C:/ace_wrappers/ace directory.
Create a config. h file
Add
# Include "ACE/config-win32.h"
5. If the C ++ standard library, such as iostream, is used,
Add it before # include in config. h.
# Define ace_has_standard_cpp_library 1
6. If you use MFC
Add it before # include in config. h.
# Define ace_has_mfc 1
7. Open vc6.0 ide
Set tools-> Option-> directory and add C:/ace_wrappers
8. Open the C:/ace_wrappers/ACE/ace. DSW file.
Compile. It takes about 10 minutes to complete the compilation!
9. In this way, you can # include "ACE/OS. H" in the header file of the subsequent MFC project file.
Note:
Each project has many different settings, such as the debug/release version, MFC/Not-MFC, or static/dynamic library version. Make sure that you build the project in the future, (For example, the ace of the debug version is required for debugging testing. The same applies to others). All different settings will be provided for you convenience.
Therefore, all the settings in the config. h file will involve the functions and scope of use of the compiled Ace. dll!