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

#if !defined(AFX_HEADERFILE_H__E1E11975_FB47_4DD2_A7B0_2F6B0DF3D903__INCLUDED_)
#define AFX_HEADERFILE_H__E1E11975_FB47_4DD2_A7B0_2F6B0DF3D903__INCLUDED_

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

#include "common.h"
#include "memfile.h"
#include "mem.h"
#include "xml.h"

class CHeaderFile{
public:
	static char *str_end_of_xml;
	static int max_header_size;
public:
	static int LoadHeader(char *fn,CXml *pxml);
	static int LoadHeader(CFileBase *header_file,CXml *pxml);
	static int WriteToFile(char *fn_des,CFileBase *file_src,CXml *pxml);
	static int WriteToFile(CFileBase *file_des,CFileBase *file_src,CXml *pxml);
    CHeaderFile();
    ~CHeaderFile();
    int Init();
    int Destroy();
    int InitBasic();
};

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