FileBase.h
资源名称:GGBT.rar [点击查看]
上传用户:lds876
上传日期:2013-05-25
资源大小:567k
文件大小:1k
源码类别:
P2P编程
开发平台:
Visual C++
- // FileBase.h: interface for the FileBase class.
- //
- //////////////////////////////////////////////////////////////////////
- #if !defined(AFX_FILEBASE_H__A4A943AF_9147_4419_A68E_35FD02B580FB__INCLUDED_)
- #define AFX_FILEBASE_H__A4A943AF_9147_4419_A68E_35FD02B580FB__INCLUDED_
- #if _MSC_VER > 1000
- #pragma once
- #endif // _MSC_VER > 1000
- bool CopyTextToClipboard(CString strSource);
- string FormatSizeK(BLONG lSize, bool bFloat = true);
- string FormatSizeM(BLONG lSize, bool bFloat = true);
- string FormatSize(BLONG lSize, bool bFloat = true);
- bool MakesureFileCreate(string strFilePath);
- long GetFileSize(string strFileName);
- bool MakeDirecotry(string strDir);
- string formatDir(string strDir);
- bool MoveDiretory(string strOld, string strNew);
- bool SplitPathName(string strFilePath, string& strPath, string& strName);
- // string SelectFolder();
- bool SelectFolder(const CString strDefault, CString &strRet);
- bool MoveDiretorySystem(vector<CString> vstrOld, CString strNew, HWND hWnd);
- int IsMovingFiles();
- int binary_search_ex (vector<long> array, int x);
- #endif // !defined(AFX_FILEBASE_H__A4A943AF_9147_4419_A68E_35FD02B580FB__INCLUDED_)