Article View: borland.public.cppbuilder.nativeapi
Article #16089Re: get command line into bcb
From: Remy Lebeau (TeamB)
Date: Fri, 30 May 2003 02:50
Date: Fri, 30 May 2003 02:50
21 lines
1725 bytes
1725 bytes
"jc" <jconnell@gci.net> wrote in message
news:3ed6c57a$1@newsgroups.borland.com...
> I'm trying to get the command line from windows and use it in a BCB
> prog. be darned if i can figure it out. it's probably simple and i'm
> just missing the obvious but anybody got any hints?
The VCL has ParamStr() and ParamCount() functions for working with the
command-line.
If you want to work with the raw command-line directly, then use the Win32
API GetCommandLine() function.
> also how the heck do set the mutex so i only run 1 instance
> of the program? i knew how 8 years ago! can't remember.
Prevent multiple instances of the program from running
http://www.bcbdev.com/faqs/faq74.htm
Gambit
Technical Details
Message-ID:
<3ed6c64c$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-03!sn-xit-06!sn-xit-09!supernews.com!newsfeed.news2me.com!small1.nntp.aus1.giganews.com!border1.nntp.aus1.giganews.com!nntp.giganews.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mailReferences:
<3ed6c57a$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10cc67,8f3a84c909afa32c,start X-Google-Attributes: gid10cc67,public X-Google-ArrivalTime: 2003-05-29 19:52:10 PST From: "Remy Lebeau \(TeamB\)" <gambit47@yahoo.com> Newsgroups: borland.public.cppbuilder.nativeapi References: <3ed6c57a$1@newsgroups.borland.com> Subject: Re: get command line into bcb Date: Thu, 29 May 2003 19:50:26 -0700 Lines: 24 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1158 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 NNTP-Posting-Host: 207.175.226.26 Message-ID: <3ed6c64c$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1054262860 207.175.226.26 (29 May 2003 19:47:40 -0700) Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-03!sn-xit-06!sn-xit-09!supernews.com!newsfeed.news2me.com!small1.nntp.aus1.giganews.com!border1.nntp.aus1.giganews.com!nntp.giganews.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail