So, how can I work around this issue?
Main Topics
Browse All TopicsHi there,
I got an application which tries to save a text file to the users desktop.
XP this works fine, but Vista I get a blank file.
After searching google I know that this is a permissions issue, but why can't the user write to there own desktop? Or My Documents.
Frustrating! I even wrapped it in try finally, but there is no error message/exception. It just fails to write anything other then blank file.
Built with D2007
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
1). You can turn UAC off in Vista.
2). You can add a proper manifest to your Delphi projects for Vista (search EE for Vista Manifest), that requests admin privileges. This will request your user always to say use and enter an administrator password.
3)... and there is not much else you can do to get around Vista's User Access Control!
John
Right figured out the solution finally.
It seems that with vista and dialogs and listviews.
When the user clicked Save it would fire up a TSaveDialog, then it would try and see which of the two listviews had focus and it would save that list.
However in vista, once the dialog was poped and closed the listview would loose focus. To get around this I would have to build the content BEFORE the dialog was opened.
before and after summary code below
(I don't have the code infront of me, it's either isFocused or has Focus or just Focused, it's a standard property of the listview)
Business Accounts
Answer for Membership
by: MerijnBPosted on 2008-12-29 at 01:23:10ID: 23254572
> but why can't the user write to there own desktop? Or My Documents.
as far as MS is concerned you could be a virus! lol
anyway, welcome to UAC I guess.