 |
BorlandTalk.com Borland discussion newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
patrickartaud Guest
|
Posted: Sat May 12, 2007 1:05 pm Post subject: Directoies with Vista |
|
|
Hello,
I don't understand why in my application Vista open read and write in some
directories MyAppp/Dir1 etc....
and not other.
I had in others directories db files and in the dir it wants open dbf files
I thought it was that I have all modified in my app and no it is not.
So I don't understand why it does this?
Now I go to try to change all to put them in users/username/.....Like it was
said to me,but it is a lot of work!!!!
Have you any idea?
I thank you very much for your help
Patrick |
|
| Back to top |
|
 |
Mike Collins Guest
|
Posted: Mon May 14, 2007 2:22 pm Post subject: Re: Directoies with Vista |
|
|
Hay Patrick - it is not very clear from your post exactly what you problem
is.
Vista has some very strange and stringent enforcements of user permissions.
As far as I know, it protects the Program File directly from non admin
access so this throws up a whole host of problems that weren't previously
there.
"patrickartaud" <patrickartaud (AT) aidedecision (DOT) com> wrote in message
news:46457573$1 (AT) newsgroups (DOT) borland.com...
| Quote: | Hello,
I don't understand why in my application Vista open read and write in some
directories MyAppp/Dir1 etc....
and not other.
I had in others directories db files and in the dir it wants open dbf
files I thought it was that I have all modified in my app and no it is
not.
So I don't understand why it does this?
Now I go to try to change all to put them in users/username/.....Like it
was said to me,but it is a lot of work!!!!
Have you any idea?
I thank you very much for your help
Patrick |
|
|
| Back to top |
|
 |
patrickartaud Guest
|
Posted: Tue May 15, 2007 1:24 pm Post subject: Re: Directoies with Vista |
|
|
Thank you Mike,
I have installed BCB6 on vista then my applications directory "progperso"
In which I have an apllication named "Optiessai"
This application has subdirectories:
"Mes Liasses"
..............
"Exemple"
When I debud my app it can open and write in "Mes liasses" but not open the
Exemple directory it sais "network error" or EDBEngine error
My application creates directories too in tha application directory, but I
can open to look for values in bdf file and save them but in other dll with
(I think) the same code, I cant open the dbf files these files are in the
directory creates by my application and in its own directory.
Here I can understand that vista have some restrictions, but when I go to
look in c:\Progpreso\Optiessai\ the directories are created and the good
files but it don't want open these.
I have the error have said to you.
Too I don't understand where is the mistake my application works fine with
XP.
I have look for GetUserName etc... to pu the directories created in this
place but I don't know how my application can see if it is running on XP or
Vista, I have seen the method "obsolete" and I dont knox where to find the
good method and what she returns.
What do you think, why in a side she works correctly and in other not!! for
the directories already in the application? "Mes Liasses " which is ok and
the "exemple" which is not.
Where must I question me :in my code? in Vista restrictions?Where to find
solution?
I thank you in adavance
Patrick
"Mike Collins" <its@TheBottomOfThePost> a écrit dans le message de
news:46481a11 (AT) newsgroups (DOT) borland.com...
| Quote: | Hay Patrick - it is not very clear from your post exactly what you problem
is.
Vista has some very strange and stringent enforcements of user
permissions. As far as I know, it protects the Program File directly from
non admin access so this throws up a whole host of problems that weren't
previously there.
"patrickartaud" <patrickartaud (AT) aidedecision (DOT) com> wrote in message
news:46457573$1 (AT) newsgroups (DOT) borland.com...
Hello,
I don't understand why in my application Vista open read and write in
some directories MyAppp/Dir1 etc....
and not other.
I had in others directories db files and in the dir it wants open dbf
files I thought it was that I have all modified in my app and no it is
not.
So I don't understand why it does this?
Now I go to try to change all to put them in users/username/.....Like it
was said to me,but it is a lot of work!!!!
Have you any idea?
I thank you very much for your help
Patrick
|
|
|
| Back to top |
|
 |
Bob Gonder Guest
|
Posted: Tue May 15, 2007 10:06 pm Post subject: Re: Directoies with Vista |
|
|
patrickartaud wrote:
| Quote: | I don't understand why in my application Vista open read and write in some
directories MyAppp/Dir1 etc....
and not other.
|
Vista is "secure"
If you want to write in non-approved areas, you (the user, not the
programmer) must tell Vista that it is ok to do so.
| Quote: | Now I go to try to change all to put them in users/username/.....Like it was
said to me,but it is a lot of work!!!!
|
Yes, but not so much work.
Use SHGetSpecialFolderLocation() with one of these
CSIDL_APPDATA
CSIDL_COMMON_APPDATA
CSIDL_PERSONAL
CSIDL_COMMON_DOCUMENTS
depending on your requirements.
Works on Win95 too |
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|