🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: borland.public.cppbuilder.nativeapi
2 messages
2 total messages Started by danzer Fri, 21 Dec 2007 19:53
WritePrivateProfileString
#928
Author: danzer
Date: Fri, 21 Dec 2007 19:53
18 lines
1720 bytes
Using Window XP Pro SP2
C++ Builder 2007

I have an application that uses WritePrivateProfileString to write the 
location of a temporary file to an ini file so that it can be located by 
multiple programs.  This code has been in use for 10+ years though 
various versions of C++ Builder.  The call to WritePrivateProfileString 
is now returning an access denied error.  The only thing I have changed 
on the suspect system is the application of the latest windows updates. 
  The following link addresses this problem.

support.microsoft.com/default.aspx?scid=kb;en-us;Q250067

The Microsoft support information is for Windows NT 4.0 and similar. 
Has anyone encountered similar errors after the application of the most 
recent windows xp updates?

Danzer
Re: WritePrivateProfileString
#929
Author: Remy Lebeau (TeamB)
Date: Fri, 21 Dec 2007 20:06
17 lines
1368 bytes
"danzer" <.> wrote in message news:476c1a17$1@newsgroups.borland.com...

> The call to WritePrivateProfileString is now returning an
> access denied error.

You are accessing a .ini file that your program does not have adequate 
permissions to.

> The only thing I have changed on the suspect system is the
> application of the latest windows updates.

Then the update likely changed the access rights on the file/folder you are 
trying to access.


Gambit 
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads