Article View: borland.public.cppbuilder.nativeapi
Article #16091Re: get command line into bcb
From: Bruce Salzman
Date: Fri, 30 May 2003 02:53
Date: Fri, 30 May 2003 02:53
19 lines
1547 bytes
1547 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 hisnts?
See GetCommandLine() in the Windows API
>
> 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.
My_Instance_Mutex = new TMutex("My_App_Mutex");
if (My_Instance_Mutex->IsShared())
PostQuitMessage(0);
Regards,
Bruce
Technical Details
Message-ID:
<3ed6c7ad$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-09!supernews.com!newshosting.com!news-xfer2.atl.newshosting.com!nntp-relay.ihug.net!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 X-Google-Attributes: gid10cc67,public X-Google-ArrivalTime: 2003-05-29 20:31:36 PST From: " Bruce Salzman" <bruce@nospam.org> Newsgroups: borland.public.cppbuilder.nativeapi References: <3ed6c57a$1@newsgroups.borland.com> Subject: Re: get command line into bcb Date: Thu, 29 May 2003 21:53:27 -0500 Lines: 21 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: 24.94.238.27 Message-ID: <3ed6c7ad$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1054263213 24.94.238.27 (29 May 2003 19:53:33 -0700) Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-03!sn-xit-06!sn-xit-09!supernews.com!newshosting.com!news-xfer2.atl.newshosting.com!nntp-relay.ihug.net!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail