Click here to Skip to main content
15,886,110 members
Articles / Containers / Virtual Machine

An extendable report editor

Rate me:
Please Sign up or sign in to vote.
5.00/5 (11 votes)
3 Sep 2008CPOL3 min read 41K   2K   35  
An extendable report editor. You can simply add your own controls without recompiling the program or writing annoying plug-ins.
// Disk.h: interface for the CDisk class.
//
//////////////////////////////////////////////////////////////////////

#if !defined(AFX_DISK_H__E140D3A4_235C_4B19_8DA2_EB4F4CB04AD0__INCLUDED_)
#define AFX_DISK_H__E140D3A4_235C_4B19_8DA2_EB4F4CB04AD0__INCLUDED_

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

#include "xml.h"

class CDisk{
public:
	CXmlNode *cur_dir;
	CXml *i_xml;
public:
	long GetFileSize(CXmlNode *px);
	long GetFileStartPos(CXmlNode *px);
	int GetFileName(CXmlNode *px,CMem *mem);
    CDisk();
    ~CDisk();
    int Init();
    int Destroy();
    int Print();
	int InitBasic();
	int GetCurPath(CMem *path);
	int ChDir(char *dir_name);
	int ChDir(CXmlNode *px);
	int IsDir(CXmlNode *px);
	CXmlNode * CDisk::GetNextFile(CXmlNode *px);
};

#endif // !defined(AFX_DISK_H__E140D3A4_235C_4B19_8DA2_EB4F4CB04AD0__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.

License

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


Written By
Software Developer
China China
26 years old, 2 years work experience.

Comments and Discussions