123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263 |
- #include <vector>
- #include <string>
- #include "fileutil.h"
- #include "SpBase.h"
- #ifdef _WIN32
- #include <windows.h>
- #endif
- using namespace std;
- bool Unzip2Folder(BSTR lpZipFile, BSTR lpFolder); //解压文件到文件夹
- void split(const string& src, const string& separator, vector<string>& dest);
- bool checkDirExist(const string &strPath);
- bool checkFileExist(string fileName);
- void getDirs(string path, vector<string> &ownname);
- bool createDir(const string &filePath);
- bool removeDir(const string &filePaht);
- void Wchar_tToString(std::string& szDst, wchar_t *wchar);
- void StringToWstring(std::wstring& szDst, std::string str);
- void stopForDebug();
- bool getUniqueDir(string path, string &dirName);//获取路径中唯一的一个文件夹名,失败返回false
- UINT
- GetPrivateProfileIntEx(
- LPCSTR lpAppName,
- LPCSTR lpKeyName,
- INT nDefault,
- LPCSTR lpFileName
- );
- BOOL
- WritePrivateProfileStringEx(
- LPCSTR lpAppName,
- LPCSTR lpKeyName,
- LPCSTR lpString,
- LPCSTR lpFileName
- );
- DWORD
- GetPrivateProfileStringEx(
- LPCSTR lpAppName,
- LPCSTR lpKeyName,
- LPCSTR lpDefault,
- LPSTR lpReturnedString,
- DWORD nSize,
- LPCSTR lpFileName
- );
- DWORD
- GetPrivateProfileSectionEx(
- LPCSTR lpAppName,
- LPSTR lpReturnedString,
- DWORD nSize,
- LPCSTR lpFileName
- );
- DWORD
- GetPrivateProfileSectionNamesEx(
- LPSTR lpszReturnBuffer,
- DWORD nSize,
- LPCSTR lpFileName
- );
|