Article View: comp.os.msdos.programmer
Article #3420Re: Getting %1, %2, etc under Borland C
From: RUNE HALFDAN HOLST HUSEBY
Date: Tue, 29 Sep 1992 02:00
Date: Tue, 29 Sep 1992 02:00
39 lines
2104 bytes
2104 bytes
In article <1992Sep28.143744.1@wombat.newcastle.edu.au> c9106225@wombat.newcastle.edu.au (Matt McLeod) writes:
>From: c9106225@wombat.newcastle.edu.au (Matt McLeod)
>Subject: Getting %1, %2, etc under Borland C
>Date: Mon, 28 Sep 1992 04:37:44 GMT
>
>OK. This has probably been asked zillions of times before, but I'll ask again
>anyway...
>
>I'm trying to get ahold of the command line parameters (that is %1, %2, etc)
>within a Borland C Windows program. I've tried the getenv() function, but to
>no avail, and there doesn't seem to be any other function around.
>
>Any ideas?
I guess it is a Windows-program you're making. If so, one of the parameter
in WinMain, is 'LPSTR lpCmdLine', which contains whatever you put on your
command-line
Hope this helps.
>
>Thanks in advance,
Any time
>
>Matt
>
>---
>Matt McLeod
>Programmer, Freelance Computer Journo and ASP Approved Vendor
>c9106225@alinga.newcastle.edu.au
} } { {
/-------------------------------} } { /----------------------------------\
| Rune Halfdan Holst Huseby } { | S-Mail: Atomveien 18 |
| ____________________________ }{ | 1777 HALDEN |
| (_____(_runeh@dhhalden.no____###) | NORWAY |
|-------------------------------------/ \----------------------------------|
| Real programmers never work 9 to 5. If any real programmers are around |
| at 9 am, it's because they were up all night. |
\--------------------------------------------------------------------------/
Technical Details
Message-ID:
<runeh.63.717732000@dhhalden.no>Path:
arc1-ca.pugleaf.net!sparky!uunet!mcsun!sunic!aun.uninett.no!nuug!dhhalden.no!pc109.dhhalden.no!runehReferences:
<1992Sep28.143744.1@wombat.newcastle.edu.au>Show Full Headers
Complete Article Headers
Newsgroups: comp.os.msdos.programmer Path: arc1-ca.pugleaf.net!sparky!uunet!mcsun!sunic!aun.uninett.no!nuug!dhhalden.no!pc109.dhhalden.no!runeh From: runeh@dhhalden.no (RUNE HALFDAN HOLST HUSEBY) Subject: Re: Getting %1, %2, etc under Borland C Message-ID: <runeh.63.717732000@dhhalden.no> Lines: 40 Sender: news@dhhalden.no (Network News User) Nntp-Posting-Host: pc109 Organization: Ostfold College References: <1992Sep28.143744.1@wombat.newcastle.edu.au> Date: Tue, 29 Sep 1992 02:00:00 GMT