Click here to Skip to main content
16,012,611 members
Articles / Desktop Programming / MFC
Article

CIniEx DLL for non-MFC users

Rate me:
Please Sign up or sign in to vote.
1.07/5 (17 votes)
26 Jan 2003 45.7K   384   17   2
CIniEx without MFC.

Introduction

CIniEx class needs MFC. I wanted to use it in my own non-MFC project. I’ve built the class in a dll with MFC linked statically. So you haven’t to include the MFC dll in your project to use it. <o:p>

<o:p> 

I’ve include only some implementations of CIniEx functions, the most useful only.<o:p>

<o:p> 

Declarations:<o:p>

extern "C" __declspec(dllimport)void IniGetValue(char * section, char * key, char * resul);<o:p>

extern "C" __declspec(dllimport)void IniSetValue(char * section, char * key, char * value);<o:p>

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

extern "C" __declspec(dllimport)void IniWrite(bool makebackup = false);<o:p>

extern "C" __declspec(dllimport)void IniResetContent();<o:p>

License

This article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.

A list of licenses authors might use can be found here


Written By
Web Developer
Spain Spain
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.

Comments and Discussions

 
Generaleh Pin
Victor Vogelpoel28-Jan-03 3:09
Victor Vogelpoel28-Jan-03 3:09 
Pretty meagre article...

Eh, why not use system APIs like WritePrivateProfileString, GetPrivateProfileString, etc, ready to use by both MFC and non-MFC users!?

VictorV
GeneralRe: eh Pin
PacoGM28-Jan-03 9:05
PacoGM28-Jan-03 9:05 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.