Software Archive
Read-only legacy content
17061 Discussions

Problem with GetOpenFileName

davidgraham
Beginner
437 Views
I am having a problem using GetOpenFileName subroutine that gives a dialogue to open a file.
The first time I use it it is OK, the second time it shows the directories correctly, then after a second removes from display the directory I previously accessed.
I have checked that OpenFN%lpstrInitialDir is the same in each case.
I wonder if it is because a file has not been closed correctly?
Any ideas?
Thanks, David
0 Kudos
1 Reply
davidgraham
Beginner
437 Views
I have noticed that the directory does not disapear, it just moves to the end of the list. It is a bit worrying for the user as he/she is expecting to see it in the same place.
This only occurs if the directories are in D:, but is OK in C:, the program I am running is in C:
I still wonder if it's to do with files not being closed.

Regards, David
0 Kudos
Reply