65.9K
CodeProject 正在变化。 阅读更多。
Home

CIniEx DLL(适用于非 MFC 用户)

starIcon
emptyStarIcon
starIcon
emptyStarIconemptyStarIconemptyStarIcon

1.07/5 (15投票s)

2003年1月27日

viewsIcon

46151

downloadIcon

384

CIniEx,无需 MFC。

引言

CIniEx 类需要 MFC。我希望在我的非 MFC 项目中使用它。我将该类构建在一个 DLL 中,并静态链接了 MFC。因此,您在使用它时无需在项目中包含 MFC DLL。

 

我只包含了一些 CIniEx 函数的实现,仅包含最有用的部分。

 

声明

extern "C" __declspec(dllimport)void IniGetValue(char * section, char * key, char * resul);

extern "C" __declspec(dllimport)void IniSetValue(char * section, char * key, char * value);

extern "C" __declspec(dllimport)void IniOpen(char * filename, bool writewhenchange = true, bool createifnotexist = true, bool nocasesensitive = true, bool makebackup = false);

extern "C" __declspec(dllimport)void IniWrite(bool makebackup = false);

extern "C" __declspec(dllimport)void IniResetContent();

© . All rights reserved.