别人写好的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中的涵数一样,有必要全都调用吗

解决方案 »

  1.   

    hpp是头文件,Lib静态库,具体实现在dll里,当然都要用的
      

  2.   

    include < >和include ""有什么区别???
    二者的区别是用<>时,系统到存放C库函数头文件所在的目录中寻找要包含的文件,这称为标准方式。用""时,系统先在用户当前目录中寻找要包含的文件,若找不到,要按标准方式查找(即再按尖括号的方式查找)。一般说,如果为调用库函数而用#include命令来包含相关的头文件,则用<>,以节省查找时间。如果要包含的是用户用自己编写的文件{这种文件一般都在当前目录中},一般用""号。若文件不在当前目录中,""内可给出文件路径。