Article View: borland.public.cppbuilder.nativeapi
Article #10864Re: Command Line Arguments
From: p Anders
Date: Thu, 11 Mar 2004 20:57
Date: Thu, 11 Mar 2004 20:57
28 lines
1873 bytes
1873 bytes
cool - that was simple enough... what is the difference between the argc and argv provided in main and these _argc and _argv? Thanks. "Ed Mulroy [TeamB]" <dont_email_me@bitbuc.ket> wrote in message news:4050d134$1@newsgroups.borland.com... > Include DOS.H and use the variables _argc and _argv the same way as > you would have used argc and argv in main > > . Ed > > > p Anders wrote in message > > news:4050cd3f$1@newsgroups.borland.com... > > > > I'd like to retrieve the command line arguments for a GUI > > application. I have seen the GetCommandLine() method > > and the CommandLineToArgvW method but what in the > > world is this return type "LPWSTR" and what is this > > parameter "LPCWSSTR"? > > > > Can anyone tell me how in the world I use this to convert > > the result of the GetCommandLine argument into a standard > > char* argv[]? > >
Technical Details
Message-ID:
<4050d29b$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!logbridge.uoregon.edu!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mailReferences:
<4050cd3f$1@newsgroups.borland.com> <4050d134$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10cc67,883b2e2ca964e949 X-Google-Attributes: gid10cc67,public X-Google-ArrivalTime: 2004-03-11 13:10:41 PST Reply-To: "p Anders" <paul.anderson@jhuapl.edu> From: "p Anders" <paul.anderson@jhuapl.edu> Newsgroups: borland.public.cppbuilder.nativeapi References: <4050cd3f$1@newsgroups.borland.com> <4050d134$1@newsgroups.borland.com> Subject: Re: Command Line Arguments Date: Thu, 11 Mar 2004 15:57:01 -0500 Lines: 30 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: <4050d29b$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1079038619 128.244.21.78 (11 Mar 2004 12:56:59 -0800) Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!logbridge.uoregon.edu!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail