Click here to Skip to main content
15,879,239 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.
#ifndef __CFILE_H
#define __CFILE_H

#include "common.h"
#include "filebase.h"

class CFile:public CFileBase{
public:
    FILE *fp;
public:
	long GetMaxSize();
	
         CFile();
         ~CFile();
    int Init();
    int Destroy();
    int OpenFile(char *fn,char *mode); 
    int CloseFile();   
    long GetSize();
    long GetOffset();
    int Seek(long nOffset);
    long Read(void *buf,long nByteToRead);      
    long Write(void *buf,long nByteToWrite);
    int SetSize(long nSize);
    static BOOL FindFile(char *fn);
	int AddBlock(long bsize);
};

#endif

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