🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Problem with Vista

#415
From: patrickartaud
Date: Tue, 08 Apr 2008 10:07
32 lines
2231 bytes
Hello,
I have this code to run my application with Vista:
//----------------------------VISTA-------------------------
LPITEMIDLIST List=NULL;
AnsiString Full,Fi,FN;
char Path[MAX_PATH+1]={0};
if(!SHGetSpecialFolderLocation(0,CSIDL_APPDATA,&List))
        {
        if(SHGetPathFromIDList(List,Path))
                {Fi=Path;
                FN=societe;
               Full=IncludeTrailingBackslash(Path)+FN;
           //     strcpy(Path,Full.c_str());
               ForceDirectories(Full);ChVista=Full;
                }
        }else{SHGetPathFromIDList(List,Path);
                ChVista=Path+AnsiString(societe);}
//----------------------------------------------------------------
My application start but when my application tries to create � directori 
with .db files I have this message:
"Can't init networrk.
Inexisting directory or file
file: C:\PDOXUSRS.NET
Permission not accepted
Directory C:\ "
I don't understand because I'm Administrator and at the stat of my 
application it creates directories and subdirectories with files very well.
If you have any id�a please, because I would my application can read and 
write in "Application data/Roamind/MyAppDir
I thank you very well and excuse my English
Regards
Patrick 
Technical Details
Message-ID: <47fb4400$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!proxad.net!feeder1-2.proxad.net!194.25.134.126.MISMATCH!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,272b7ea1c987d26,start
X-Google-Attributes: gid10cc67,domainid0,public,usenet
X-Google-Language: ENGLISH,ASCII
From: "patrickartaud" <patrickartaud@aidedecision.com>
Newsgroups: borland.public.cppbuilder.nativeapi
Subject: Problem with Vista
Date: Tue, 8 Apr 2008 12:07:47 +0200
Lines: 33
MIME-Version: 1.0
Content-Type: text/plain;
 format=flowed;
 charset="iso-8859-1";
 reply-type=original
Content-Transfer-Encoding: 8bit
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Windows Mail 6.0.6000.16480
X-MimeOLE: Produced By Microsoft MimeOLE V6.0.6000.16545
NNTP-Posting-Host: 82.228.58.174
Message-ID: <47fb4400$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1207649280 82.228.58.174 (8 Apr 2008 03:08:00 -0700)
Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!proxad.net!feeder1-2.proxad.net!194.25.134.126.MISMATCH!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail