How to read and write XML files in VC How to read and write XML files in VC2010-06-08 14:55:24 Author: Anonymous Source: Views: 7 1. Install MSXML 4.0 SP2. Create a Dialog-based project in VC6. [pic][pic][pic][pic][pic][pic][pic]1. Install MSXML 4.0 SP2. Create a Dialog-based project in VC6. Place 3 edit boxes and 1 button control on the interface. The properties are set as follows. Edit box: |ID |Categ|Variable |Variable || |ory |Type |Name ||IDC_ID |Value|CString |m_strId ||IDC_AUT|Value|CString |m_strAuth||HOR | | |or ||IDC_TIT|Value|CString |m_strTitl||LE | | |e |Button: |ID |Capti|| |on ||IDC_GENE|Gener||RATE |ate ||IDC_LOAD|Load |2. Add the following code to the InitInstance function of the App class: [pic]// Com port initialization [pic]AfxOleInit(); 3. Introduce the dynamic link library MSXML.DLL (C:\\windows\\system32\\msxml4.dll) in StdAfx.h [pic]#import < msxml4.dll > 4. Double-click the Generate button and add the following code to the message processing function: [pic]UpdateData(TRUE); MSXM……
You Might Like
Recommended ContentMore
Open source project More
Popular Components
Searched by Users
Just Take a LookMore
Trending Downloads
Trending ArticlesMore