以下是我節錄的部分
===================
class CFile : public CObject
{
DECLARE_DYNAMIC(CFile)
public:
// Flag values
enum OpenFlags {
modeRead = 0x0000,
modeWrite = 0x0001, };
CFile(char* lpszFileName, UINT nOpenFlags);
virtual BOOL Open(char* lpszFileName, UINT nOpenFlags);
virtual void Close();
virtual UINT Read(void* lpBuf, UINT nCount);
virtual void Write(const void* lpBuf, UINT nCount);
HFILE m_hFile; // associated file
public:
virtual ~CFile();
protected:
char m_strFileName[40]; // file name
};
--
※ 發信站: 批踢踢實業坊(ptt.csie.ntu.edu.tw)
◆ From: 218.160.6.26