What is the problem with GetPrivateProfileString?
- From: Steve Richfie1d <Steve@xxxxxxxxxxxxxxxxxxxxx>
- Date: Tue, 01 Nov 2005 13:06:08 -0800
GetPrivateProfileString (aliased to GetPrivateProfileStringA) called from VB5 SP3 works GREAT on my XP machine, but on my '98 machine it just returns a blank buffer and a zero length indication regardless of what is in the INI file. It doesn't even return the value of the default argument!
I made the call to WritePrivateProfileString with all arguments except for the filename NULL to map the INI file to the registry, but it doesn't seem to be hiding in there as a result.
Otherwise, WritePrivateProfileString seems to be writing the INI file OK on the '98 machine, I just can't read it back in with GetPrivateProfileString.
Like most Microsoft problems I run into, this one has also had lots of postings along with replies the don't work, but apparently no one has yet found the magic solution to this problem on non-NT machines.
Thanks in advance for any help that you can provide. As always, I DO post the workable solutions I find to save others the same problems.
Steve Richfie1d .
- Follow-Ups:
- Re: What is the problem with GetPrivateProfileString?
- From: Douglas Marquardt
- Re: What is the problem with GetPrivateProfileString?
- From: Bob Butler
- Re: What is the problem with GetPrivateProfileString?
- Prev by Date: Re: What is the problem with GetPrivateProfileString?
- Next by Date: Re: What is the problem with GetPrivateProfileString?
- Previous by thread: Error 429 from OpenDatabase in VB5 SP3 IDE
- Next by thread: Re: What is the problem with GetPrivateProfileString?
- Index(es):
Relevant Pages
|