别人写好的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中的涵数一样,有必要全都调用吗
解决方案 »
- 如何用ping测试目标服务器的速度?用代码实现,而不是在cmd下运行。
- 求教一个关于调用程序的问题
- vc 调用acitvex控件问题?
- 如何将CEdit中的文本居中?垂直居中。
- 如何在Thread执行体《 UINT Thread(LPVOID lparam) 》中使用listCtrl控件的插入操作
- ClassWizard怎么不能生成基类为CObject的类呢
- 求一本书《Insede OLE, Second Edition》,不知那位能提供一下!感激不尽!
- 使用API函数的问题,急救……!(在线等,请大家帮忙)!
- 超级难题100分求救。 一个月了,还没解决!
- 求windows核心编程 一书的源代码,多谢了
- 解决了马上给分!!!!
- $$$$$$$$$我自做了一个数组类,不知道正不正确。欢迎大家指点......
二者的区别是用<>时,系统到存放C库函数头文件所在的目录中寻找要包含的文件,这称为标准方式。用""时,系统先在用户当前目录中寻找要包含的文件,若找不到,要按标准方式查找(即再按尖括号的方式查找)。一般说,如果为调用库函数而用#include命令来包含相关的头文件,则用<>,以节省查找时间。如果要包含的是用户用自己编写的文件{这种文件一般都在当前目录中},一般用""号。若文件不在当前目录中,""内可给出文件路径。