Article View: borland.public.cppbuilder.nativeapi
Article #10789Re: Command line parms and dll's
From: Michel Corbin
Date: Mon, 15 Mar 2004 14:48
Date: Mon, 15 Mar 2004 14:48
24 lines
1766 bytes
1766 bytes
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:
<4055c270$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>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 Date: Mon, 15 Mar 2004 15:48:09 +0100 From: Michel Corbin <michel> User-Agent: Mozilla/5.0 (Windows; U; Win98; en-US; rv:1.4) Gecko/20030624 Netscape/7.1 (ax) X-Accept-Language: en-us, en MIME-Version: 1.0 Newsgroups: borland.public.cppbuilder.nativeapi Subject: Re: Command line parms and dll's References: <4055bde3$1@newsgroups.borland.com> In-Reply-To: <4055bde3$1@newsgroups.borland.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit NNTP-Posting-Host: 193.52.214.70 Message-ID: <4055c270$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1079362160 193.52.214.70 (15 Mar 2004 06:49:20 -0800) Lines: 25 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