Article View: borland.public.cppbuilder.nativeapi
Article #9923Re: How to get Application directory (argv[0]) ?
From: Tomas
Date: Mon, 07 Jun 2004 12:04
Date: Mon, 07 Jun 2004 12:04
6 lines
1002 bytes
1002 bytes
Woops!,,, I've found it ..
void __fastcall TForm1::Button2Click(TObject *Sender)
{
Caption = ExtractFilePath(Application->ExeName);
}
Technical Details
Message-ID:
<40c459b7$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.glorb.com!newshosting.com!nx01.iad01.newshosting.com!203.109.252.33.MISMATCH!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mailReferences:
<40c458ac@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: <Tomas> Newsgroups: borland.public.cppbuilder.nativeapi References: <40c458ac@newsgroups.borland.com> Subject: Re: How to get Application directory (argv[0]) ? Date: Mon, 7 Jun 2004 22:04:08 +1000 Lines: 8 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1409 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1409 NNTP-Posting-Host: 211.30.68.31 Message-ID: <40c459b7$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1086609847 211.30.68.31 (7 Jun 2004 05:04:07 -0700) Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.glorb.com!newshosting.com!nx01.iad01.newshosting.com!203.109.252.33.MISMATCH!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail