在1.0.10中加上了命名空间。可以通过下面任意一种方法获取最新代码:
下载: http://sourceforge.net/projects/x3c/files/ (x3c-1.0.10.zip,包含CHM、log4cplus源码、cppunit头文件)
SVN: https://x3c.svn.sourceforge.net/svnroot/x3c/trunk (不包含log4cplus源码和cppunit头文件)
主要改变有:
1、在插件比较重要的全局函数前加上x3前缀
2、在一些全局函数加上了x3命名空间
3、改文件名:Cx_ChangeObserver.h、Ix_LogObserver.h、Cx_ConfigSection.h
4、改变日志输出宏名:X3LOG_INFO、X3LOG_WARNING2、X3LogGroup
对于以前的程序代码,可以包含 Portability\obsolete.h 文件,自动适应名称的变化,obsolete.h的内容如下:
#ifndef _X3_OBSOLETE_H
#define _X3_OBSOLETE_H
#include <UtilFunc/X3Portability.h>
#define XCLSID X3CLSID
#define CAutoLogGroup X3LogGroup
#define CLogObserverImpl Cx_LogObserverImpl
#define kLogType x3LogType
#define kLogType_Info x3LogType_Info
#define kLogType_Warning x3LogType_Warning
#define kLogType_Error x3LogType_Error
#define LOG_DEBUG X3LOG_DEBUG
#define LOG_DEBUG2 X3LOG_DEBUG2
#define LOG_INFO X3LOG_INFO
#define LOG_INFO2 X3LOG_INFO2
#define LOG_WARNING X3LOG_WARNING
#define LOG_WARNING2 X3LOG_WARNING2
#define LOG_ERROR X3LOG_ERROR
#define LOG_ERROR2 X3LOG_ERROR2
#define LOG_FATAL X3LOG_FATAL
#define LOG_FATAL2 X3LOG_FATAL2
#define X3LogGroup X3LogGroup
#define CConfigIOSection Cx_ConfigSection
#define CConfigTransaction Cx_ConfigTransaction
using namespace x3;
#endif // _X3_OBSOLETE_H
ChangeLog:
2011-06-17
* Remove Ix_ObjectFactory::HasCreatorReplaced, SpecialInterfaceObject.
------v1.0.10------
2011-06-16
* Add x3 namespace in revision 159.
2011-06-15
* Write error code for LoadLibraryExW in PluginManager.
* Add notes for including XComCreator.h
* Fix *.vcproj
* Add 'IDS_CHANGE_FAIL' in ConfigXml plugin.
------v1.0.9------
2011-06-02, Li Jian (Aaron) <mcuit@hotmail.com>, Zhang Yun Gui
* Add makefile for Linux.
2011-05-26
* Add example projects: HollowView and HollowViewApp.
* Fix Cx_PluginLoader::LoadPluginFiles.
… …