Article View: borland.public.cppbuilder.nativeapi
Article #9922How to get Application directory (argv[0]) ?
From: Tomas
Date: Mon, 07 Jun 2004 11:59
Date: Mon, 07 Jun 2004 11:59
8 lines
1163 bytes
1163 bytes
argv[0] returns the application directory and name in a console application.
How can we access the application directory on a VCL application?
void __fastcall TForm1::Button2Click(TObject *Sender)
{
Caption = AnsiString( argv[0]); <----- How to read application directory?
}
Technical Details
Message-ID:
<40c458ac@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!news1.google.com!news.glorb.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newshosting.com!nx01.iad01.newshosting.com!203.109.252.33.MISMATCH!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10cc67,a1405fb016fd91f,start X-Google-Attributes: gid10cc67,public From: <Tomas> Newsgroups: borland.public.cppbuilder.nativeapi Subject: How to get Application directory (argv[0]) ? Date: Mon, 7 Jun 2004 21:59:40 +1000 Lines: 13 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: <40c458ac@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1086609580 211.30.68.31 (7 Jun 2004 04:59:40 -0700) Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!news1.google.com!news.glorb.com!border1.nntp.dca.giganews.com!nntp.giganews.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