Re: Looking for some advice for my program

Tech-Archive recommends: Fix windows errors by optimizing your registry



Webbiz wrote:
All this time, I had not thought of using an INI format. In fact, I had
completely forgotten that you use API calls to deal with them. Being simple
text files, I can only think that the API is for dealing with the 'order' of
the information, so that I do not have to. Would that be the correct
assumption?

The API is for reading/writing just the info you want. Nothing more or less. INI
files are organized into sections, each of which can have multiple (even same-named)
entries. The API provides a way to say, "Give me entry X from section Y" or "Save Z
as entry X in section Y." All values are strings, of course, open to interpretation
as you wish. As you surmise, the "order" of information is totally irrelevent in an
INI.

I've settled on a class-based tool to work with INI files in my apps. You may find
it helpful in thinking about how you want to do this. See:
http://vb.mvps.org/samples/kpIni
--
..NET: It's About Trust!
http://vfred.mvps.org


.



Relevant Pages

  • Re: Reg/INI Discussion from much earlier
    ... (File I/O and System Pooled Memory) so it is hard to see ... > I suspect that they are very inefficient, and prefer to use my own INI ... The API calls do have an advantage when it comes to writes, ... > I should really do a similar test with FileMon ...
    (microsoft.public.vb.general.discussion)
  • Re: Saving and restoring windows
    ... Why bother cluttering up the OS2.INI with that junk? ... Never found or used that API myself. ... If you can't select an INI handle, then it seems kinda useless to me. ...
    (comp.os.os2.programmer.misc)
  • Re: Some users cant write to ini file.
    ... application that reads the .ini through the API. ... Also, try changing the .ini by running the app., close the app., open ... the .ini in Notepad - you may well see the .ini as it was before the ...
    (borland.public.delphi.language.objectpascal)
  • Re: Edit/Delete section of an ini file
    ... and it also makes sense because at load time the INI ... I have found a couple of googles that state "The following entries are the ... via API, but were created by the install program with those values for, as you ... access by programs/OS utilities that read the file in a NON API ...
    (microsoft.public.scripting.vbscript)
  • [PATCH] mmu notifiers #v7
    ... is zero, the only discussion here is to make an API that will last ... err = populate_range; ... update_mmu_cache(vma, address, entry); ...
    (Linux-Kernel)