πŸš€ go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.nativeapi
Article #1959

Re: Directoies with Vista

#1959
From: patrickartaud
Date: Tue, 15 May 2007 08:24
57 lines
3699 bytes
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@newsgroups.borland.com...
> 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@aidedecision.com> wrote in message 
> news:46457573$1@newsgroups.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
>
> 
Technical Details
Message-ID: <46496e52$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news1.google.com!news.glorb.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail
References: <46457573$1@newsgroups.borland.com> <46481a11@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,de68a4cdf3a87ee7
X-Google-Attributes: gid10cc67,public
X-Google-Language: ENGLISH,ASCII
From: "patrickartaud" <patrickartaud@aidedecision.com>
Newsgroups: borland.public.cppbuilder.nativeapi
References: <46457573$1@newsgroups.borland.com> <46481a11@newsgroups.borland.com>
In-Reply-To: <46481a11@newsgroups.borland.com>
Subject: Re: Directoies with Vista
Date: Tue, 15 May 2007 10:24:48 +0200
Lines: 58
MIME-Version: 1.0
Content-Type: text/plain;
 format=flowed;
 charset="iso-8859-1";
 reply-type=response
Content-Transfer-Encoding: 8bit
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Windows Mail 6.0.6000.16386
X-MimeOLE: Produced By Microsoft MimeOLE V6.0.6000.16386
NNTP-Posting-Host: 82.228.58.174
Message-ID: <46496e52$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1179217490 82.228.58.174 (15 May 2007 01:24:50 -0700)
Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news1.google.com!news.glorb.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail