1, unzip the Ace.zip, such as extract to C: /
2, find the location of the ACE_WrapPers directory, such as C: / ACE_WrapPERS
3, create a new ACE_ROOT environment variable in the system, the value is set to C: / ace_wrappers
Specific settings: My Computer - Properties - Advanced - Environment Variables - New
4, open the C: / ace_wrappers / ace directory
New config.h file
Add
#include "ACE / Config-Win32.h"
5. If you use a C standard library, such as iostream,
In Config.h
Add before #include
#define ace_has_standard_cpp_library 1
6, if you use MFC
In Config.h
Add before #include
#DEFINE ACE_HAS_MFC 1
7, open VC6.0 IDE
Set Tools -> Option -> Directory, new C: / ACE_Wrappers
8, open the C: /Ace_wrappers/ace/ace.dsw file
Compile, wait for probably
10 minutes, compiled!
9. In this way, you can be included in the header file of the MFC project file in the later MFC project.
note:
Every project will have a lot of different settings, like Debug / Release version, MFC / Not-MFC, or Static / Dynamic Library version, make sure your building is what you want later, (for example, Debug test You need to use the Debug version ACE, others, and all different settings will be provided to you.
So all settings in the config.h file will involve the features and range of use of this compiled Ace.dll!
Parameters for adding / MT to the CL compiler in the VC C settings should be able to solve your problem.