VC uses the development environment configuration of msxml dom (memo, originally from MSDN)

Source: Internet
Author: User
To install MSXML manually register msxml4.dllCopy 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 configuration methods
There are two ways to instruct your application to use the DOM
Interfaces: the first one is automatic and the simplest.
1) To include headers and libraries automatically
Add
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 specified cases, however, these wrappers are quite
Useful and make working with CDO in C ++ very simple. raw_interfaces_only
This attribute only displays the low-level content of the Type Library. The second type is manual and complex.
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 IncAnd Lib. 2. Add your directory to the standard include path.
To do this in
Visual C ++, open Options...Panel from
ToolsMenu. Click the Directories tab, then select
IncludeFiles from the Show directories for drop-down menu. Add
Your directory name, such as "C: \ msxml4 \ sdk \ inc", to the Directories textbox. Here we talk about VC6.0 3. Add your directory to the system library path.
To do this in Visual
C ++, open Options...Panel from 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
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.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.