Click here to Skip to main content
15,896,434 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 41.3K   2K   35  
An extendable report editor. You can simply add your own controls without recompiling the program or writing annoying plug-ins.
// DiskMaker.h: interface for the CDiskMaker class.
//
//////////////////////////////////////////////////////////////////////

#if !defined(AFX_DISKMAKER_H__608B2CE1_3036_4D40_BF93_D6E1A2B83BFD__INCLUDED_)
#define AFX_DISKMAKER_H__608B2CE1_3036_4D40_BF93_D6E1A2B83BFD__INCLUDED_

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

#include "xml.h"
#include "memstk.h"
#include "headerfile.h"
#include "disk.h"

class CDiskMaker:public CDisk{
public:
	CMemStk *file_tab;
	CXml *xml_header;
public:
	int LoadDir(char *dir_name,char *ext_filter);
	int AddFile(char *fn);
	int WriteToHeaderFile(char *fn);
	int WriteToHeaderFile(CFileBase *header_file);
	long GetCurPos();
	int AddFile(CFileBase *file,char *file_name);
	int MkDir(char *dir_name);
    CDiskMaker();
    ~CDiskMaker();
    int Init();
    int Destroy();
    int Print();
    int InitBasic();
};

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