#if !defined(AFX_FILECOMMFUN_H__B8748F8E_7AC0_40EC_AF65_DA250BB488D6__INCLUDED_)
|
#define AFX_FILECOMMFUN_H__B8748F8E_7AC0_40EC_AF65_DA250BB488D6__INCLUDED_
|
|
#if _MSC_VER > 1000
|
#pragma once
|
#endif // _MSC_VER > 1000
|
// FileCommFun.h : header file
|
//
|
|
/////////////////////////////////////////////////////////////////////////////
|
// CFileCommFun window
|
|
class AFX_EXT_CLASS CFileCommFun
|
{
|
// Construction
|
public:
|
CFileCommFun();
|
virtual ~CFileCommFun();
|
|
// Attributes
|
public:
|
|
// Operations
|
public:
|
static CString GetErrInfo( long nErrCode, CString strLanguage = _T( "CHS" ) );
|
|
static char * Str2Base64( const unsigned char *s, char *t, int n );
|
static const char * Base642Str( const char *s, char *t, size_t l, int *n );
|
|
static ULONGLONG GetDiskFreeSpace( CString strRootPath );
|
static bool ExistFile( CString strFilePath );
|
|
static CString GetPathName( CString strFileName );
|
static CString GetFileName( CString strPathName );
|
static CString GetFileTitle( CString strFileName );
|
static CString GetCurAppPath();
|
|
static bool WriteLogFile( CString strFile, CString strLog );
|
|
protected:
|
static CString GetErrInfo_Eng( long nErrCode );
|
static CString GetErrInfo_Chs( long nErrCode );
|
|
};
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
//{{AFX_INSERT_LOCATION}}
|
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
|
|
#endif // !defined(AFX_FILECOMMFUN_H__B8748F8E_7AC0_40EC_AF65_DA250BB488D6__INCLUDED_)
|