fileop.h

来自「《Visual C++ 6.0实例教程》配套代码」· C头文件 代码 · 共 25 行

H
25
字号
// FileOP.h: interface for the CFileOP class.
//
//////////////////////////////////////////////////////////////////////

#if !defined(AFX_FILEOP_H__8A3CCD0F_7360_497B_B85A_7D5BECB91CFA__INCLUDED_)
#define AFX_FILEOP_H__8A3CCD0F_7360_497B_B85A_7D5BECB91CFA__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
#define COPY_CFILE	0
#define COPY_API	1
class CFileOP : public CObject  
{
public:
	CFileOP();
	virtual ~CFileOP();
	static BOOL Copy(CString strSourcePath, CString strTargetPath, int nType = COPY_API);
protected:
	static BOOL CopyByCFile(CString strSourcePath, CString strTargetPath);
	static BOOL CopyByApi(CString strSourcePath, CString strTargetPath);
};

#endif // !defined(AFX_FILEOP_H__8A3CCD0F_7360_497B_B85A_7D5BECB91CFA__INCLUDED_)

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?