Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > Borland Delphi > Re: Vista file ...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 2 of 9 Topic 3846 of 3940
Post > Topic >>

Re: Vista file protection question

by Rob Kennedy <me3@[EMAIL PROTECTED] > Jul 21, 2008 at 09:11 PM

Bob Richardson wrote:
> I have some old Pascal coding that Vista is balking at when  'myfile'
> is stored under Program Files. This works fine when the file is stored
> under Do***ents. I'm getting a "File Access Denied" error message.
> 
>    AssignFile(myfile, 'SomeData');
>   Reset(myfile);
> 
> 
>  Of course, it works fine under WinXP.  I do not change this file - it
> is only read. Thus, I thought I could (should) store the file along
> with the EXE file.  Perhaps there is another way to open this file
> read only, but I can't find any do***entation.

Are you sure you're asking for read-only access? What is the value of 
the global FileMode variable? Unless your variable is a TextFile, 
FileMode should be fmOpenRead.

-- 
Rob
 




 9 Posts in Topic:
Vista file protection question
Bob Richardson <bobr@[  2008-07-21 17:48:32 
Re: Vista file protection question
Rob Kennedy <me3@[EMAI  2008-07-21 21:11:24 
Re: Vista file protection question
Bob Richardson <bobr@[  2008-07-21 19:34:44 
Re: Vista file protection question
"Maarten Wiltink&quo  2008-07-22 10:20:07 
Re: Vista file protection question
Rob Kennedy <me3@[EMAI  2008-07-22 08:24:24 
Re: Vista file protection question
Bob Richardson <bobr@[  2008-07-22 08:45:28 
Re: Vista file protection question
Bart <broersma.juda_AN  2008-07-23 12:52:23 
Re: Vista file protection question
"Maarten Wiltink&quo  2008-07-23 14:26:22 
Re: Vista file protection question
Bob Richardson <bobr@[  2008-07-23 08:49:58 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Mon Oct 6 15:28:57 CDT 2008.