🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Get cmdline args of another program?

#13895
From: Islaw
Date: Mon, 15 Sep 2003 15:49
21 lines
1537 bytes
"Vladimir Afanasyev" <avv@systema.kiev.ua> wrote in message
news:3f64445f$1@newsgroups.borland.com...
>
> Hi,
> for WinNt/2000/XP see:
> http://www.winterdom.com/dev/ptk/cmdline.html
> It will not work for Win98 because uses CreateRemoteThread.
> Vladimir.

Thanks. Though that c code will not compile in any Borland compiler (BC/C++
5.02 and BCB 5). They both complain about

   __leave

being undefined in

   #define SIGNAL_ERROR() { bError = TRUE; __leave; }

but it compiles fine in MSVC6. Why does Borland trip on this???

Direct link: http://www.winterdom.com/dev/ptk/cmdline.c
Technical Details
Message-ID: <3f65df88$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-08!supernews.com!newsfeed.wirehub.nl!news.kweb.on.ca!KWeb!newsgroups.borland.com!not-for-mail
References: <3f64269f$1@newsgroups.borland.com> <3f64445f$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10cc67,9d54a63f4f340102
X-Google-Attributes: gid10cc67,public
X-Google-ArrivalTime: 2003-09-15 08:56:16 PST
From: "Islaw" <szr80@yahoo.com>
Newsgroups: borland.public.cppbuilder.nativeapi
References:  <3f64269f$1@newsgroups.borland.com> <3f64445f$1@newsgroups.borland.com>
Subject: Re: Get cmdline args of another program?
Date: Mon, 15 Sep 2003 08:49:28 -0700
Lines: 23
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: 64.85.232.117
Message-ID: <3f65df88$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1063640968 64.85.232.117 (15 Sep 2003 08:49:28 -0700)
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-08!supernews.com!newsfeed.wirehub.nl!news.kweb.on.ca!KWeb!newsgroups.borland.com!not-for-mail