使用INI配置文件,简单便捷。 该辅助工具类为C#操作INI文件的辅助类,源码在某位师傅的基础上完善的来,因为忘记最初的来源了,因此不能提及引用,在此深感遗憾,并对贡献者表示感谢。 using System; using System.Collections; using System.Collections.Generic; using System.Runtime.InteropServices; using System.Text;...
buff, 256, m_path.c_str()); rtn = buff; return rtn; } bool CIniHelper::WriteInt(const wchar_t * AppName, const wchar_t * KeyName, int value) { wchar_t buff[11]{}; _itow_s(value, buff, 10); return (::WritePrivateProfileStringW(AppName, KeyName, buff, m_...
class CIniHelper { public: CIniHelper(); ~CIniHelper(); void SetPath(const wstring& path); bool WriteString(const wchar_t* AppName, const wchar_t* KeyName, wstring str); wstring GetString(const wchar_t* AppName, const wchar_t* KeyName, const wchar_t* default_str);...
CHotKeySettingDlg.h CHotkeyManager.cpp CHotkeyManager.h CListBoxEnhanced.cpp CListBoxEnhanced.h CMiniModeUI.cpp CMiniModeUI.h CNotifyIcon.cpp CNotifyIcon.h CPlayerUI.cpp CPlayerUI.h CPlayerUI2.cpp CPlayerUI2.h CPlayerUIBase.cpp CPlayerUIBase.h CPlayerUIHelper.cpp CPlayerUIHel...
#pragma once class CIniHelper { public: CIniHelper(); ~CIniHelper(); void SetPath(const wstring& path); bool WriteString(const wchar_t* AppName, const wchar_t* KeyName, wstring str); wstring GetString(const wchar_t* AppName, const wchar_t* KeyName, const wchar_t* de...
#pragma once class CIniHelper { public: CIniHelper(); ~CIniHelper(); void SetPath(const wstring& path); bool WriteString(const wchar_t* AppName, const wchar_t* KeyName, wstring str); wstring GetString(const wchar_t* AppName, const wchar_t* KeyName, const wchar_t* de...
CHotkeyManager.cpp CHotkeyManager.h CListBoxEnhanced.cpp CListBoxEnhanced.h CMiniModeUI.cpp CMiniModeUI.h CNotifyIcon.cpp CNotifyIcon.h CPlayerUI.cpp CPlayerUI.h CPlayerUI2.cpp CPlayerUI2.h CPlayerUIBase.cpp CPlayerUIBase.h CPlayerUIHelper.cpp CPlayerUIHelper.h CTabCtrlEx.cpp CTa...
Breadcrumbs MusicPlayer2 /MusicPlayer2 / IniHelper.h Latest commit zhongyang219 将ini文件的读写封装成一个类。 删除无用文件 edbfc09· Jul 19, 2018 HistoryHistory File metadata and controls Code Blame 25 lines (20 loc) · 1.14 KB Raw #pragma once class CIniHelper { public: CIniHel...
CHotkeyManager.h CListBoxEnhanced.cpp CListBoxEnhanced.h CMiniModeUI.cpp CMiniModeUI.h CNotifyIcon.cpp CNotifyIcon.h CPlayerUI.cpp CPlayerUI.h CPlayerUI2.cpp CPlayerUI2.h CPlayerUIBase.cpp CPlayerUIBase.h CPlayerUIHelper.cpp CPlayerUIHelper.h CTabCtrlEx.cpp CTabCtrlEx.h CVaria...
#pragma once #define DEF_CH L'\"' //写入和读取ini文件字符串时,在字符串前后添加的字符 class CIniHelper { public: CIniHelper(); ~CIniHelper(); void SetPath(const wstring& path); bool WriteString(const wchar_t* AppName, const wchar_t* KeyName, wstring str); wstring GetSt...