msxml c++

msxml c++
Building Applications Using C++

When using MSXML with C++, you need to a number of things to build and run your application. They include:

  • Configuring the directories for include files - you need to add an entry for the inc directory in the MSXML SDK.

  • Configuring the directories for lib files - you need to add an entry for the lib directory in the MSXML SDK.

  • In the properties for the project, specifying the MSXML library that you need to link into your application.

  • Modifying the source for the example or application to include the appropriate MSMXL header file.

  • Modifying the source for the example or application to use the correct ClassID for the version of MSXML that you are using.

  • Making sure that the MSXML dynamic link library (DLL) is in your path. Typically, MSXML3.dll, MSXML4.dll, MSXML5.dll, and MSXML6.dll are put into the WINDOWS\system32 directory.

The following table lists the versions of MSXML, the header name, the library name, and the DLL name.

6.0 msxml6.h msxml.lib msxml.dll

The issue here is similar to the naming of ProgIDs. It is necessary to simply follow a "recipe". You need to include the header file and link with the library according to the above table.

What is more important is that you need to set your directories appropriately in Visual Studio so that the compiler finds the header file for your desired version of MSXML, and that the linker links with the right library.

Most of the C++ examples include msxml2.h. If you want to build your example to use MSXML 6.0, you will need to change the header file and library, per the above table.

来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/17267437/viewspace-545637/,如需转载,请注明出处,否则将追究法律责任。

转载于:http://blog.itpub.net/17267437/viewspace-545637/

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值