🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Command Line Arguments

#10865
From: Ed Mulroy [TeamB]
Date: Thu, 11 Mar 2004 20:50
17 lines
1516 bytes
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: <4050d134$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-mail
References: <4050cd3f$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
From: "Ed Mulroy [TeamB]" <dont_email_me@bitbuc.ket>
Newsgroups: borland.public.cppbuilder.nativeapi
References: <4050cd3f$1@newsgroups.borland.com>
Subject: Re: Command Line Arguments
Date: Thu, 11 Mar 2004 15:50:35 -0500
Lines: 19
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.1106
NNTP-Posting-Host: 24.74.175.102
Message-ID: <4050d134$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1079038260 24.74.175.102 (11 Mar 2004 12:51:00 -0800)
X-Authenticated-User: edmulroy
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