Re: GetPrivateProfileString() retrieves data but strips "", ????

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



On Fri, 10 Feb 2006 08:03:57 -0600, "Ralph"
<nt_consulting64@xxxxxxxxx> wrote:


"Jack" <replyTo@newsgroup> wrote in message
news:O1J5jWeLGHA.208@xxxxxxxxxxxxxxxxxxxxxxx
Interestingly, enclosing in double quotes GetPrivateProfileString()
retrieves data enclosed in single quotes.
It is fine with me but how reliable it is?
I am using vb5.
Jack

Likely as reliable as anything else MS delivers.

There has never been an "Official Specification" for Ini files. They started
out as simple proprietary 'configuration' files for Windows (rather ad hoc),
and thus the de facto standard become however MS defined the profile
functions to behave.

Being pedantic, they turned up a long time before Windows

I believe you will find that the behavior will be consistent for any one
API, tool, or utility, but expect slight differences across them.

IMO the best trick is to roll your own INI file handler

- that way you know exactly how it behaves
.



Relevant Pages

  • Re: Setup-Deployment and Initial Window Focus
    ... Can anyone explain how I can get the program menu version to behave ... the same as the desktop icon? ... version of Windows you're using, ... shortcut behaves the same way as the desktop shortcut - the window has ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: New and Notable - Toei anime legal downloads - PreCure
    ... I haven't tried MPlayer under Windows on anything except for files ... I would absolutely not expect MPlayer to behave any ... a file physically on the local computer. ...
    (rec.arts.anime.misc)
  • Re: Photoshop Elements - is it really this bad?
    ... Perhaps other OS don't behave the same. ... I think you are describing the Elements Organizer. ... stipple in the lower right on their 'mac-style' gui, ... Let's try hard to make it not use the windows appearance settings ...
    (comp.periphs.scanners)
  • Re: IE dehanced?
    ... There are still people who prefer things from Windows 3.11 for ... Second, Wordperfect's "Reveal Codes" view, in which you could see ... Figuring out what exactly is causing one paragraph to behave one way ... Longing for DOS - that's pure masochism! ...
    (microsoft.public.windowsxp.general)