Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

GetOpenFileName Directory Locking

Status
Not open for further replies.

softwarescience

Programmer
Dec 7, 2001
71
GB
We have a C++ dll that is uploaded to intranet users to allow them to select file names.
This uses the GetOpenFileName function with the OPENFILENAME structure.
The basic concept works, however there is an unwanted side affect that we cannot find any reference to.

For windows 98 SE and prior the problem does NOT occur, whereas on W2K and XP (ignore NT) there is a problem.

On using the function to select (or cancel selection) a file the entire path is locked i.e. select a file 'c:\temp\bob\file1.doc' then the directories 'temp' and 'bob' cannot be renamed, moved etc until the browser is shut. This effectively locks the path until the user exits the application, which is obviously unusable.

Has anyone had a similar problem or am I just missing something.

Many thanks
 
Thanks for the link, it was just what I wanted.

Basically, someone else having the same problem and getting the same solution of re-setting the current directory.

Seems daft though that there is no definate way of releasing the directory lock.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top