别人写好的lib放在文件包lib中,名字叫xerces-c_1_5.dll和xerces-c_1_5D.dll在stdfx.h中调用的代码如下:#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000#if defined(_DEBUG)
#pragma comment(lib, "lib/xerces-c_2D.lib")
#else
#pragma comment(lib, "lib/xerces-c_2.lib")
#endif//Include
#include <xercesc/util/PlatformUtils.hpp>
#include <xercesc/dom/DOM.hpp>
#include <xercesc/dom/DOMImplementation.hpp>
#include <xercesc/dom/DOMImplementationLS.hpp>
#include <xercesc/dom/DOMWriter.hpp>
#include <xercesc/framework/XMLFormatter.hpp>
#include <xercesc/framework/StdOutFormatTarget.hpp>
#include <xercesc/framework/LocalFileFormatTarget.hpp>
#include <xercesc/parsers/XercesDOMParser.hpp>
#include <xercesc/util/XMLUni.hpp>
#include <xercesc/util/transservice.hpp>
#include <stdlib.h>
#include <stdio.h>
我该如何拷贝lib文件包,使本工程能够调用那两个*.lib文件,
为什么他调用了lib后,又写Include<*.hpp >,lib文件中的涵数
和*.hpp中的文件中的涵数是一样的??为什么他要用尖括号??
而不用"".
而且他还封装好了*.dll文件,放在bin文件包中,*.dll中的涵数也是
和*.hpp,*.lib中的涵数一样,有必要全都调用吗
#pragma once
#endif // _MSC_VER > 1000#if defined(_DEBUG)
#pragma comment(lib, "lib/xerces-c_2D.lib")
#else
#pragma comment(lib, "lib/xerces-c_2.lib")
#endif//Include
#include <xercesc/util/PlatformUtils.hpp>
#include <xercesc/dom/DOM.hpp>
#include <xercesc/dom/DOMImplementation.hpp>
#include <xercesc/dom/DOMImplementationLS.hpp>
#include <xercesc/dom/DOMWriter.hpp>
#include <xercesc/framework/XMLFormatter.hpp>
#include <xercesc/framework/StdOutFormatTarget.hpp>
#include <xercesc/framework/LocalFileFormatTarget.hpp>
#include <xercesc/parsers/XercesDOMParser.hpp>
#include <xercesc/util/XMLUni.hpp>
#include <xercesc/util/transservice.hpp>
#include <stdlib.h>
#include <stdio.h>
我该如何拷贝lib文件包,使本工程能够调用那两个*.lib文件,
为什么他调用了lib后,又写Include<*.hpp >,lib文件中的涵数
和*.hpp中的文件中的涵数是一样的??为什么他要用尖括号??
而不用"".
而且他还封装好了*.dll文件,放在bin文件包中,*.dll中的涵数也是
和*.hpp,*.lib中的涵数一样,有必要全都调用吗
看你的代码.hpp,应该是在BCB下面的吧。。
你调库文件是对的。
.hpp也就是.h。
“”里面表示在当前文件夹内。
<>表示在系统环境变量指定的目录内
用<>表示这些文件都是放在系统目录下的。用""一般表示放在当前应用程序目录下。
按照你的程序看,是有必要的。
<>表示在系统环境变量指定的目录内