RE: Access to command line at app's start-up

From: Greg Edwards <"Greg>
Date: Mon, 11 Jun 2001 13:21:29 -0700

IMPORT KERNEL32;

PROCEDURE CommandLine*;
        VAR p: KERNEL32.StringPtr; str: POINTER TO ARRAY OF CHAR; i: INTEGER;
BEGIN
        p := KERNEL32.GetCommandLineA();
        IF (p # NIL) & (p$ # "") THEN
                NEW(str,LEN(p$)+1);
                FOR i := 0 TO LEN(p$) -1 DO
                        str[i] := p[i];
                END;
                str[LEN(p$)] := 0X;
                (* str now contains the commande line... do with it as you will *)
        END
END CommandLine;


-----Original Message-----
From: M. Gierdalski [mailto:mgierdalski{([at]})nowhere.xy
Sent: Monday, June 11, 2001 1:09 PM
To: blackbox{([at]})nowhere.xy
Subject: Access to command line at app's start-up


How can I access GetCommandLine function from kernel32.dll? I would like to
pass them into inside my BB application. Is there any other way to do it?

Thanks in advance

Marcin

--------------------------------------------

To unsubscribe from this mailing list, send a message containing the word
"unsubscribe" to:
   blackbox-request{([at]})nowhere.xy

To get a list of valid e-mail commands and instructions on their usage, send
a message containing the word "help" to the above address.

Send any problem reports or questions related to this email list to the list
owner at
   owner-blackbox{([at]})nowhere.xy

--------------------------------------------

To unsubscribe from this mailing list, send a message containing the word "unsubscribe" to:
   blackbox-request{([at]})nowhere.xy

To get a list of valid e-mail commands and instructions on their usage, send a message containing the word "help" to the above address.

Send any problem reports or questions related to this email list to the list owner at
   owner-blackbox{([at]})nowhere.xy
Received on Mon Jun 11 2001 - 20:21:29 UTC

This archive was generated by hypermail 2.3.0 : Thu Sep 26 2013 - 06:27:43 UTC