?? newcexml.h
字號:
// CEXML.h: interface for the CCEXML class.
//
//////////////////////////////////////////////////////////////////////
#if !defined(AFX_CEXML_H__CCE34393_A339_4F76_B1C6_6EE725D4EC68__INCLUDED_)
#define AFX_CEXML_H__CCE34393_A339_4F76_B1C6_6EE725D4EC68__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
#include <objsafe.h>
#include <objbase.h>
#include <msxml2.h>
#include <atlbase.h>
#include <Msxml2.h>
class CCEXML
{
public:
CCEXML();
virtual ~CCEXML();
BOOL InitialiseAndParse( LPCTSTR szXMLFile );
CComPtr<IXMLDOMDocument> CCEXML::CreateEmptyDOMDocument();
// This is a pure virtual function which needs writing by the derived class
virtual void DisplayChild( IXMLDOMElement* pChild ) = 0 { }
CString ParseXML( IXMLDOMElement *node );
CString GetAttributes( CString& strAttribs );
HRESULT DASetAttribute( BSTR bstrName, BSTR bstrValue, IXMLDOMNode* pNode, IXMLDOMDocument* pDocument );
HRESULT DAAddChild( BSTR name, int nType, IXMLDOMNode** pOut, IXMLDOMNode* pNode, IXMLDOMDocument* pDocument );
IXMLDOMDocument* GetDocument() { return m_iXMLDoc; }
private:
void DisplayChildren( IXMLDOMElement* pParent );
protected:
CComPtr<IXMLDOMDocument> m_iXMLDoc;
};
#endif // !defined(AFX_CEXML_H__CCE34393_A339_4F76_B1C6_6EE725D4EC68__INCLUDED_)
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -