VC使用MSXML DOM的开发环境配置 (备忘,原文来自MSDN)
2005-05-09 11:03
661 查看
To install MSXML manually
注册msxml4.dll
Copy the DLLs to the system directory on your working machine.
Register
the DLLs by typing the following at a command prompt:
cd c:\windows\system32
regsvr32
msxml4.dll
两种配置方式
There are two ways to instruct your application to use the DOM
interfaces:
第一种是自动的,最简单
1)To include headers and libraries automatically
Add the
following two lines to your source code:
#import <msxml4.dll> raw_interfaces_only
using
namespace MSXML2;
The raw_interfaces_only flag to #import directive suppresses the creation of "smart
pointer" C++ wrapper classes. In many cases, however, these wrappers are quite
useful and make working with CDO in C++ very simple.
raw_interfaces_only
该属性只允许展示类型库的低级内容。
第二种是手工的,复杂
2)To include headers and libraries manually
1. Locate the SDK directory installed by the appropriate MSXML package.
For example, your directory might be C:\msxml4\sdk, with subdirectories
named inc and lib.
2. Add your directory to the standard include path.
To do this in
Visual C++, open the Options... panel from the
Tools menu. Click the Directories tab, then select
Include files from the Show directories for drop-down menu. Add
your directory name, such as "C:\msxml4\sdk\inc", to the Directories textbox.
这里说的是VC6.0
3. Add your directory to the system library path.
To do this in Visual
C++, open the Options... panel from the Tools
menu. Click the Directories tab. Select Library files from the Show directories
for drop-down menu. Add your directory name to the Directories
textbox.
4. Include the required MSXML header file by inserting the
following macro into the source code:
#include <msxml2.h>
5. Link msxml2.lib to your project.
To do this in Visual C++, open
Project Settings by clicking Settings from the Project menu. Select the Link
tab. Append "msxml2.lib" to the Object/library modules: textbox.
注册msxml4.dll
Copy the DLLs to the system directory on your working machine.
Register
the DLLs by typing the following at a command prompt:
cd c:\windows\system32
regsvr32
msxml4.dll
两种配置方式
There are two ways to instruct your application to use the DOM
interfaces:
第一种是自动的,最简单
1)To include headers and libraries automatically
Add the
following two lines to your source code:
#import <msxml4.dll> raw_interfaces_only
using
namespace MSXML2;
The raw_interfaces_only flag to #import directive suppresses the creation of "smart
pointer" C++ wrapper classes. In many cases, however, these wrappers are quite
useful and make working with CDO in C++ very simple.
raw_interfaces_only
该属性只允许展示类型库的低级内容。
第二种是手工的,复杂
2)To include headers and libraries manually
1. Locate the SDK directory installed by the appropriate MSXML package.
For example, your directory might be C:\msxml4\sdk, with subdirectories
named inc and lib.
2. Add your directory to the standard include path.
To do this in
Visual C++, open the Options... panel from the
Tools menu. Click the Directories tab, then select
Include files from the Show directories for drop-down menu. Add
your directory name, such as "C:\msxml4\sdk\inc", to the Directories textbox.
这里说的是VC6.0
3. Add your directory to the system library path.
To do this in Visual
C++, open the Options... panel from the Tools
menu. Click the Directories tab. Select Library files from the Show directories
for drop-down menu. Add your directory name to the Directories
textbox.
4. Include the required MSXML header file by inserting the
following macro into the source code:
#include <msxml2.h>
5. Link msxml2.lib to your project.
To do this in Visual C++, open
Project Settings by clicking Settings from the Project menu. Select the Link
tab. Append "msxml2.lib" to the Object/library modules: textbox.
相关文章推荐
- VC使用MSXML DOM的开发环境配置 (备忘,原文来自MSDN)
- Eclipse开发环境中使用maven插件的配置备忘
- javahost:使用虚拟DNS省掉开发环境配置hosts文件
- 搭建java开发环境+配置tomcat+使用eclipse
- 深度学习Caffe平台开发环境准备——2.使用Eclipse的插件PyDev配置Python开发环境
- android 最新 NDK r8 在window下开发环境搭建 安装配置与使用 详细图文讲解,完整实际配置过程记录
- VC中建立使用WinPcap的开发环境
- 使用IntelliJ IDEA配置Erlang开发环境
- sublimeText 使用技巧及配置Lua开发环境
- 使用IntelliJ IDEA配置Erlang开发环境
- Spring3.1中使用profile配置开发测试线上环境
- (0037) React-Native开发之环境配置步骤和安装使用
- TensorFlow - 使用TensorFlow开发程序编译环境配置
- Maven 使用profiles filters resources build 打包不同配置开发环境及打包
- 如何使用 Docker 快速配置数据科学开发环境?
- ubuntu使用cloudfoundry集群开发oracle环境配置
- Ubuntu 14.04 下安装Qt5 并配置开发环境(终端下使用)
- Android NDK开发的环境配置和使用
- VC++.net 整合开发环境使用技巧
- 配置ext4.1的eclipse的开发环境,主要是spket插件的使用