Click here to Skip to main content
13,299,495 members (70,540 online)
Click here to Skip to main content


414 bookmarked
Posted 20 Feb 2001

XML class for processing and building simple XML documents

, 23 Sep 2003
Link CMarkup into your VC++ app and avoid complex XML tools and dependencies
// MarkupDlg.h : header file
// CMarkup Release 6.5 Lite
// Copyright (C) 1999-2003 First Objective Software, Inc. All rights reserved
// This entire notice must be retained in this source code
// Redistributing this source code requires written permission
// This software is provided "as is", with no warranty.
// Latest fixes enhancements and documentation at

#if !defined(AFX_MARKUPDLG_H__7E553A30_D0C6_11D6_9F49_00500486CAFC__INCLUDED_)
#define AFX_MARKUPDLG_H__7E553A30_D0C6_11D6_9F49_00500486CAFC__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000

// CMarkupDlg dialog

class CMarkupDlg : public CDialog
// Construction
	CMarkupDlg(CWnd* pParent = NULL);	// standard constructor

// Dialog Data
		// NOTE: the ClassWizard will add data members here

	// ClassWizard generated virtual function overrides
	virtual void DoDataExchange(CDataExchange* pDX);	// DDX/DDV support

// Implementation
	void OutputTestResults( CString csMsg );
	int Alert( CString csMsg );
	void StartCheckZone( CString csCheckZone );
	int Check( BOOL bCorrect );
	int RunTest();
	void OutputParseResults( CString csMsg );
	void TimeStart();
	int TimeStop();
	int RandInt( int nNumber );

	CString m_csTestResults;
	CString m_csCheckZone;
	int m_nCheckCount;
	int m_nErrorCount;
	SYSTEMTIME m_stBefore;

// Util
	static CString AddNumSeps( int nVal )
		CString csNum;
		for ( int nOffset = csNum.GetLength()-3; nOffset > 0; nOffset -= 3 )
			csNum = csNum.Left(nOffset) + "," + csNum.Mid(nOffset);
		return csNum;

	HICON m_hIcon;

	// Generated message map functions
	virtual BOOL OnInitDialog();
	afx_msg void OnPaint();
	afx_msg HCURSOR OnQueryDragIcon();
	afx_msg void OnButtonBrowse();
	afx_msg void OnButtonParse();
	afx_msg void OnDestroy();

// Microsoft Visual C++ will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_MARKUPDLG_H__7E553A30_D0C6_11D6_9F49_00500486CAFC__INCLUDED_)

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.


This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


About the Author

Ben Bryant
United States United States
Raised in Southern Ontario Canada. Bachelor of Science from the University of Toronto in Computer Science and Anthropology. Living near Washington D.C. in Virginia, USA.

You may also be interested in...

Permalink | Advertise | Privacy | Terms of Use | Mobile
Web04 | 2.8.171207.1 | Last Updated 24 Sep 2003
Article Copyright 2001 by Ben Bryant
Everything else Copyright © CodeProject, 1999-2017
Layout: fixed | fluid