Article View: borland.public.cppbuilder.nativeapi
Article #10788Re: Command line parms and dll's
From: p Anders
Date: Mon, 15 Mar 2004 14:51
Date: Mon, 15 Mar 2004 14:51
34 lines
1991 bytes
1991 bytes
Thanks for the advice on ParamStr() but I am looking to stay IDE independent, if possible. "Michel Corbin" <michel> wrote in message news:4055c270$1@newsgroups.borland.com... > I dont know whether > ParamStr(0) > works in a dll. > You can look at ParamStr and ParamCount in the Help. > Perhaps > LPTSTR GetCommandLine(VOID) > could save you (look at it the MS help files) > Hope this can help > Michel. > p Anders wrote: > > I am using _argc and _argv to retrieve command line parameters. These don't > > seem to work in a dll - maybe this makes sense but I'm not really familiar > > with dll's. > > > > Isn't argc and argv ALWAYS guaranteed to at least contain the name of the > > program itself??????? > > > > Can someone tell me, 1) does this make sense? Is there another way to get > > command line parms in a dll? and 2) what I really need from the command line > > parms is the name of the program itself. > > > > Thanks a lot!!! > > > > >
Technical Details
Message-ID:
<4055c2de$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<4055bde3$1@newsgroups.borland.com> <4055c270$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10cc67,ba03626f392813af X-Google-Attributes: gid10cc67,public X-Google-ArrivalTime: 2004-03-15 07:10:24 PST Reply-To: "p Anders" <paul.anderson@jhuapl.edu> From: "p Anders" <paul.anderson@jhuapl.edu> Newsgroups: borland.public.cppbuilder.nativeapi References: <4055bde3$1@newsgroups.borland.com> <4055c270$1@newsgroups.borland.com> Subject: Re: Command line parms and dll's Date: Mon, 15 Mar 2004 09:51:11 -0500 Lines: 36 Organization: JHU/APL X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1106 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 NNTP-Posting-Host: 128.244.21.78 Message-ID: <4055c2de$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1079362270 128.244.21.78 (15 Mar 2004 06:51:10 -0800) Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail