VC6.0下Xtreme ToolkitPro安装

2014年09月11日 技术资料 4021 views 0

VC6.0下Xtreme ToolkitPro安装 第1张 


using MFC as DLL,分发时需要同时发布DLL文件,当很多文件共享DLL时选择此项。

as a static library,using mfc as static library考虑客户没有mfc,选额此项。本例选择此项,注意编程时MFC也要选择。

 VC6.0下Xtreme ToolkitPro安装 第2张 


VC6.0下Xtreme ToolkitPro安装 第3张 


在stdafx中添加

#define _XTP_STATICLINK
#include <XTToolkitPro.h>    // Xtreme Toolkit Pro components
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_STDAFX_H__F0C0D54F_BF99_4940_85FC_7F399B75EC1F__INCLUDED_)



在rc2文件中添加资源包含文件头

//
// MDISAMPLE.RC2 - resources Microsoft Visual C++ does not edit directly
//

#ifdef APSTUDIO_INVOKED
        #error this file is not editable by Microsoft Visual C++
#endif //APSTUDIO_INVOKED

#include <XTToolkitPro.rc>
/////////////////////////////////////////////////////////////////////////////
// Add manually edited resources here...

/////////////////////////////////////////////////////////////////////////////



项目设置
链接input 忽略libcd.lib 
添加Additional库文件、头文件、资源文件路径,不用配置lib module

👍好活当赏🧧