vc ace安装配置 vc ace程序配置 一.打开 Tools>Options>Directories Include File: C:/ACE_wrappers/ Library Files: C:/ACE_wrappers/ace 二.Project>seting->Code Generation->Debug Multithread DLL Precompiled Headers->Not Using precompiled headers 1)不与MFC结合的dll General->Microsoft Foundation Classes设置为Use MFC in a Shared Dll C/C++->Preprocessor->Preprocessor definitions增加ACE_HAS_MFC=1 1.1)ACE Static (非mfc_ace静态库) Lind->Input-> ACEsd.lib Addition library path设置好路径 C/C++->Preprocessor->Preprocessor definitions增加ACE_AS_STATIC_LIBS 1.2)ACE DLL (非mfc ace动态库) Lind->Input-> ACEd.lib Addition library path设置好路径 2)MFC Static and ACE static (包含mfc的ace静态库) ace/config.h (#define ACE_HAS_MFC 1 //使用MFC #define ACE_AS_STATIC_LIBS 1 //静态ace #define ACE_USES_STATIC_MFC 1 //静态MFC) Project>seting->Code Generation->Debug Multithread General->Microsoft Foundation Classes设置为Not Using MFC 编译开关_DEBUG,WIN32,_WINDOWS,ACE_HAS_ACE_TOKEN,ACE_HAS_ACE_SVCCONF,ACE_AS_STATIC_LIBS 编译成ACEsdMfc.lib vc应用ACE工程配置: General->Microsoft Foundation Classes设置为Use MFC in a Static Library 编译开关WIN32,_DEBUG,_MBCS,ACE_AS_STATIC_LIBS Project>seting->Code Generation->Debug Multithread