Write/GetPrivateProfileString in 2003

Write/GetPrivateProfileString in 2003

am 09.04.2008 05:55:52 von jeffp

I just converted a 2000 db to 2003 running on Vista. Went looking for the
ini file created when using WritePrivateProfileString and can't find it. Did
a complete file search and can't find it but the info is getting written
somewhere and I am able to read it.

So I assume it is going into the Registry. A search of the registry produces
nothing.

Now I am truly amazed. No file, no registry entry, but it still works.

So I go searching help in 2003 and no reference anywhere to these functions,
as expected, and a search of Microsoft site doesn't enlighten me any really.
So I assume I am missing a key article somewhere.

So what are these API functions actually doing?

--
Jeff
"More Access Stuff."
http://www.asken.com.au

Re: Write/GetPrivateProfileString in 2003

am 09.04.2008 06:29:16 von Tony Toews

"JeffP" wrote:

>I just converted a 2000 db to 2003 running on Vista. Went looking for the
>ini file created when using WritePrivateProfileString and can't find it.

I use those all the time to store the location of the BE MDB. However I do put in an
explicit path as well as a file name and the ini file extension. This has worked for
me since A2.0 to A2003 and under Win 9x to Vista.

Tony
--
Tony Toews, Microsoft Access MVP
Please respond only in the newsgroups so that others can
read the entire thread of messages.
Microsoft Access Links, Hints, Tips & Accounting Systems at
http://www.granite.ab.ca/accsmstr.htm
Tony's Microsoft Access Blog - http://msmvps.com/blogs/access/

Re: Write/GetPrivateProfileString in 2003

am 09.04.2008 06:33:14 von jeffp

I use it for the exact same reason but I don't put in an explicit path just
the filename and it has always worked, creating the file in the Windows
folder by default.

But it ain't there in Vista. Made sure my explorer setting shows all files
and did a search and it is nowhere. Truly a mystery.

Jeff

"Tony Toews [MVP]" wrote in message
news:eahov3ddgmr4p0v9gofja7lgk1qsplkfpp@4ax.com...
> "JeffP" wrote:
>
>>I just converted a 2000 db to 2003 running on Vista. Went looking for the
>>ini file created when using WritePrivateProfileString and can't find it.
>
> I use those all the time to store the location of the BE MDB. However I
> do put in an
> explicit path as well as a file name and the ini file extension. This has
> worked for
> me since A2.0 to A2003 and under Win 9x to Vista.
>
> Tony
> --
> Tony Toews, Microsoft Access MVP
> Please respond only in the newsgroups so that others can
> read the entire thread of messages.
> Microsoft Access Links, Hints, Tips & Accounting Systems at
> http://www.granite.ab.ca/accsmstr.htm
> Tony's Microsoft Access Blog - http://msmvps.com/blogs/access/

Re: Write/GetPrivateProfileString in 2003

am 09.04.2008 07:54:18 von Larry Linson

"JeffP" wrote in message
news:47fc4707$0$13290$5a62ac22@per-qv1-newsreader-01.iinet.n et.au...
>I use it for the exact same reason but I don't put in an explicit path just
>the filename and it has always worked, creating the file in the Windows
>folder by default.
>
> But it ain't there in Vista. Made sure my explorer setting shows all files
> and did a search and it is nowhere. Truly a mystery.

I'm quite certain that it IS there. It is possible that to "improve your
user experience", they have hidden it so you "don't have to worry about it".
There seems to be a pervasive attitude among the designers and implementers
that "those poor users have too much to worry about, so we should just take
care of some of it, and hide it from them". (And, it's been going on long
before Vista.)

I wonder how many times I've gotten an offer to remove the unused icons from
my desktop in Win XP. I dismiss the dialog (then get it again, then they
leave me alone for a few days/weeks. It is the little-used thing that I
_want_ there, so I don't have to figure out a second time how to get to
them, if I do want to use them again. I don't have a particularly large
screen, but it's not nearly half full of icons, and, indeed, most of them
haven't been used in some time, but "you'll get them when you pry them from
my cold dead fingers."

Larry

Re: Write/GetPrivateProfileString in 2003

am 09.04.2008 09:08:21 von jeffp

Glad I'm not the only one on the edge of Microsoft Murder. Not that it is
only Microsoft in this conspiracy.

But I agree, it must be there, though stuffed if I can find it. So I guess
I have to have 'faith' and believe it even though I can't see it.

Jeff

"Larry Linson" wrote in message
news:eSYKj.3725$3w2.620@trnddc05...
>
> "JeffP" wrote in message
> news:47fc4707$0$13290$5a62ac22@per-qv1-newsreader-01.iinet.n et.au...
>>I use it for the exact same reason but I don't put in an explicit path
>>just the filename and it has always worked, creating the file in the
>>Windows folder by default.
>>
>> But it ain't there in Vista. Made sure my explorer setting shows all
>> files and did a search and it is nowhere. Truly a mystery.
>
> I'm quite certain that it IS there. It is possible that to "improve your
> user experience", they have hidden it so you "don't have to worry about
> it". There seems to be a pervasive attitude among the designers and
> implementers that "those poor users have too much to worry about, so we
> should just take care of some of it, and hide it from them". (And, it's
> been going on long before Vista.)
>
> I wonder how many times I've gotten an offer to remove the unused icons
> from my desktop in Win XP. I dismiss the dialog (then get it again, then
> they leave me alone for a few days/weeks. It is the little-used thing that
> I _want_ there, so I don't have to figure out a second time how to get to
> them, if I do want to use them again. I don't have a particularly large
> screen, but it's not nearly half full of icons, and, indeed, most of them
> haven't been used in some time, but "you'll get them when you pry them
> from my cold dead fingers."
>
> Larry
>

Re: Write/GetPrivateProfileString in 2003

am 09.04.2008 14:07:18 von lyle

On Apr 9, 3:08=A0am, "JeffP" wrote:
> Glad I'm not the only one on the edge of Microsoft Murder. Not that it is
> only Microsoft in this conspiracy.
>
> But I agree, it =A0must be there, though stuffed if I can find it. So I gu=
ess
> I have to have 'faith' and believe it even though I can't see it.
>
> Jeff
>
> "Larry Linson" wrote in message
>
> news:eSYKj.3725$3w2.620@trnddc05...
>
>
>
> > "JeffP" wrote in message
> >news:47fc4707$0$13290$5a62ac22@per-qv1-newsreader-01.iinet. net.au...
> >>I use it for the exact same reason but I don't put in an explicit path
> >>just the filename and it has always worked, creating the file in the
> >>Windows folder by default.
>
> >> But it ain't there in Vista. Made sure my explorer setting shows all
> >> files and did a search and it is nowhere. Truly a mystery.
>
> > I'm quite certain that it IS there. =A0It is possible that to "improve y=
our
> > user experience", they have hidden it so you "don't have to worry about
> > it". There seems to be a pervasive attitude among the designers and
> > implementers that "those poor users have too much to worry about, so we
> > should just take care of some of it, and hide it from them". =A0(And, it=
's
> > been going on long before Vista.)
>
> > I wonder how many times I've gotten an offer to remove the unused icons
> > from my desktop in Win XP. I dismiss the dialog (then get it again, then=

> > they leave me alone for a few days/weeks. It is the little-used thing th=
at
> > I _want_ there, so I don't have to figure out a second time how to get t=
o
> > them, if I do want to use them again. =A0I don't have a particularly lar=
ge
> > screen, but it's not nearly half full of icons, and, indeed, most of the=
m
> > haven't been used in some time, but "you'll get them when you pry them
> > from my cold dead fingers."
>
> > Larry

This might/should tell you (maybe):

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion
\IniFileMapping

Re: Write/GetPrivateProfileString in 2003

am 15.04.2008 20:27:24 von Tony Toews

"JeffP" wrote:

>I use it for the exact same reason but I don't put in an explicit path just
>the filename and it has always worked, creating the file in the Windows
>folder by default.

But regular users don't have update/write privileges to Windows or Program Files. So
that's not a good idea.

Tony
--
Tony Toews, Microsoft Access MVP
Please respond only in the newsgroups so that others can
read the entire thread of messages.
Microsoft Access Links, Hints, Tips & Accounting Systems at
http://www.granite.ab.ca/accsmstr.htm
Tony's Microsoft Access Blog - http://msmvps.com/blogs/access/

Re: Write/GetPrivateProfileString in 2003

am 23.04.2008 07:56:32 von jeffp

Went looking there and it isn't there? Did a search of the registry and not
there?

"lyle" wrote in message
news:eacf6afc-651e-48be-bd47-90dcbe1aa310@1g2000prg.googlegr oups.com...
On Apr 9, 3:08 am, "JeffP" wrote:
> Glad I'm not the only one on the edge of Microsoft Murder. Not that it is
> only Microsoft in this conspiracy.
>
> But I agree, it must be there, though stuffed if I can find it. So I guess
> I have to have 'faith' and believe it even though I can't see it.
>
> Jeff
>
> "Larry Linson" wrote in message
>
> news:eSYKj.3725$3w2.620@trnddc05...
>
>
>
> > "JeffP" wrote in message
> >news:47fc4707$0$13290$5a62ac22@per-qv1-newsreader-01.iinet. net.au...
> >>I use it for the exact same reason but I don't put in an explicit path
> >>just the filename and it has always worked, creating the file in the
> >>Windows folder by default.
>
> >> But it ain't there in Vista. Made sure my explorer setting shows all
> >> files and did a search and it is nowhere. Truly a mystery.
>
> > I'm quite certain that it IS there. It is possible that to "improve your
> > user experience", they have hidden it so you "don't have to worry about
> > it". There seems to be a pervasive attitude among the designers and
> > implementers that "those poor users have too much to worry about, so we
> > should just take care of some of it, and hide it from them". (And, it's
> > been going on long before Vista.)
>
> > I wonder how many times I've gotten an offer to remove the unused icons
> > from my desktop in Win XP. I dismiss the dialog (then get it again, then
> > they leave me alone for a few days/weeks. It is the little-used thing
> > that
> > I _want_ there, so I don't have to figure out a second time how to get
> > to
> > them, if I do want to use them again. I don't have a particularly large
> > screen, but it's not nearly half full of icons, and, indeed, most of
> > them
> > haven't been used in some time, but "you'll get them when you pry them
> > from my cold dead fingers."
>
> > Larry

This might/should tell you (maybe):

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion
\IniFileMapping