🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Another application's path question.

#17468
From: Remy Lebeau (TeamB)
Date: Tue, 25 Mar 2003 18:12
20 lines
1696 bytes
"Jeff Douglass" <.> wrote in message
news:3e807afd$1@newsgroups.borland.com...
> Overall question. I now want to allow the user to be
> able to control the app's master directory. ie change
> c:\visinet to say d:\nms
>
> What is the standard/best way for the app to handle this?

Extract the application's installation folder (or assign whatever folder you
want) and then just append the other paths to it when needed, ie:

    AnsiString RootFolder = ExtractFilePath(Application->ExeName);
    AnsiString GUIFolder = RootFolder + "GUI";
    AnsiString DriversFolder = RootFolder + "Drivers";
    AnsiString FEPFolder = RootFolder + "FEP"
    AnsiString RuntimeFolder = RootFolder + "Runtim";


Gambit
Technical Details
Message-ID: <3e8099a9$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-03!sn-xit-06!sn-xit-01!sn-xit-09!supernews.com!iad-peer.news.verio.net!news.verio.net!newsfeed.wirehub.nl!news.kweb.on.ca!KWeb!newsgroups.borland.com!not-for-mail
References: <3e807afd$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10cc67,fa57852cb200d57
X-Google-Attributes: gid10cc67,public
X-Google-ArrivalTime: 2003-03-25 10:11:35 PST
From: "Remy Lebeau \(TeamB\)" <gambit47@yahoo.com>
Newsgroups: borland.public.cppbuilder.nativeapi
References: <3e807afd$1@newsgroups.borland.com>
Subject: Re: Another application's path question.
Date: Tue, 25 Mar 2003 10:12:07 -0800
Lines: 22
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1106
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106
NNTP-Posting-Host: 207.175.226.26
Message-ID: <3e8099a9$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1048615337 207.175.226.26 (25 Mar 2003 10:02:17 -0800)
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-03!sn-xit-06!sn-xit-01!sn-xit-09!supernews.com!iad-peer.news.verio.net!news.verio.net!newsfeed.wirehub.nl!news.kweb.on.ca!KWeb!newsgroups.borland.com!not-for-mail