🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: How to get Application directory (argv[0]) ?

#9926
From: Vladimir Stefanovic
Date: Mon, 07 Jun 2004 14:56
10 lines
1148 bytes
<Tomas> wrote in message news:40c459b7$1@newsgroups.borland.com...
> Woops!,,, I've found it ..
>
>  void __fastcall TForm1::Button2Click(TObject *Sender)
> {
>     Caption = ExtractFilePath(Application->ExeName);
> }

Try also: ParamStr(0)
Technical Details
Message-ID: <40c48492@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.glorb.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <40c458ac@newsgroups.borland.com> <40c459b7$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10cc67,a1405fb016fd91f
X-Google-Attributes: gid10cc67,public
From: "Vladimir Stefanovic" <antivari@ptt.yu>
Newsgroups: borland.public.cppbuilder.nativeapi
References: <40c458ac@newsgroups.borland.com> <40c459b7$1@newsgroups.borland.com>
Subject: Re: How to get Application directory (argv[0]) ?
Date: Mon, 7 Jun 2004 16:56:01 +0200
Lines: 14
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 5.00.2314.1300
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2314.1300
NNTP-Posting-Host: 213.137.116.168
Message-ID: <40c48492@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1086620818 213.137.116.168 (7 Jun 2004 08:06:58 -0700)
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.glorb.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail