前面四步跟文档走:
Statically Linking to the Ultimate ToolBox
Please follow the steps below to statically link to the Ultimate ToolBox:
STEP 1: Build all configurations of the JPEG libraries - you'll find this project in the lib\JPEG directory (this is a VC6 project that should convert and build properly in later versions of Visual Studio).
STEP 2: Build all configurations of the “UTStaticLib” project found in the “/lib/Build Libs” folder. (You can omit the configurations you are sure you are not going to use.)
STEP 3: Add the following line to the end of you project’s StdAfx.h file:
#include "UTStaticLib.h"
STEP 4: Add the following line to the “Compile-time directives” window of your Resource Includes:
#include "OXMain.rc"
做一些设置,项目属性 C/C++ 附加包含目录 Ultimate Toolbox\include , 资源附加目录做相同设置
连接器 附加库目录 Ultimate Toolbox\lib\Libs
改一下include\UTStaticlib.h 拿掉 #ifdef _AFXDLL 分支的代码,这块是使用共享库的
编译一下搞定