Re: .INI files in vogue?

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance




> No, it's a Windows application, but yes, I'll probably use XML.
> It seems the logical way to go.
If it is not a .NET application, then the recomended way is the registry.
Adding a full xml parser just to load a config file might be a bit too much.
If you use one already for other functions in the application, then this
should be ok.

A warning if you have a Windows application and config files (.ini or .xml):
respect the user/system folders, test the functionality as non-admin.
You should store user settings in the user folder, and system setting
(that can be changed by the admin only) in a common place, read-only for
a normal user.

Good places for user settings:
"C:\Documents and Settings\<User>\Application Data\<Company>\<App>\"
"C:\Documents and Settings\<User>\Local Settings\Application
Data\<Company>\<App>\"

Good places for system settings:
"C:\Documents and Settings\All Users\Application Data\<Company>\<App>\"

And do not hard-code this, use SHGetFolderPath :-)

--
Mihai Nita [Microsoft MVP, Windows - SDK]
------------------------------------------
Replace _year_ with _ to get the real email
.



Relevant Pages

  • Re: Using PHP to parse specific XML tag content?
    ... XML --> HTML transformation in testing environment. ... run just fine under Windows using Cygwin, and, unless I'm ... but you have to learn XSLT or use whatever defaults ...
    (comp.lang.php)
  • Re: client -server interaction over XML supporting multiple protocols
    ... > analyzing various models to develop the server. ... The Windows WinInet at just the socket layer is also very ... expected to be different for each platform. ... will the XML size constraints significantly hinder the request ...
    (comp.lang.cpp)
  • Re: Lost my newsgroups
    ... This the more for XML, ... Xnews is able to load old headers and articles. ... the file will be corrupt. ... next time you post a "GNU/Linux is better then Windows ...
    (alt.internet.search-engines)
  • Re: Connect Computer with Windows Vista Business
    ... profile, we need to check the SBSNetSetup.log to Identify which file is ... "The following user settings are private" error message when you try to ... migrate a user's profile to Windows Small Business Server 2003http://support.microsoft.com/?id=886210 ... Microsoft CSS Online Newsgroup Support ...
    (microsoft.public.windows.server.sbs)
  • Re: WU Error 0x800A138F / 0xC00CE55F on Win XP Pro
    ... Is this Windows XP, 2000, or an XP upgrade from 2000? ... I've tried all the fixes> I could find on usenet / support sites including the FIPS algorithm check,> SSL2/3 enable, cache clearing, XML parser reinstall... ... The SOAP request contains information> about my client system and a > tag with a procedurename "Providers" specified. ... The SOAP POST data> are very similar to those of the first request, except this tiem the > tag contains a list of parentItems. ...
    (microsoft.public.windowsupdate)