Dennis,

Would you mind sharing what you were doing?
This sounds interesting.

Jan


-----Original Message-----
From: Dennis McGrath <[EMAIL PROTECTED]>
To: [email protected] (RBASE-L Mailing List)
Date: Thu, 9 Oct 2008 09:16:49 -0500
Subject: [RBASE-L] - Re: Passed parameters to compiled app


Thanks again Larry,
 
It works perfectly!  This will solve my immediate problem in a most elegant 
manner!
 
Dennis
 



From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf Of Dennis 
McGrath
Sent: Thursday, October 09, 2008 9:07 AM
To: RBASE-L Mailing List
Subject: [RBASE-L] - Re: Passed parameters to compiled app
 
Fabulous, Larry!
 
That’s exactly what I need.
 
Dennis
 



From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf Of Lawrence 
Lustig
Sent: Thursday, October 09, 2008 8:48 AM
To: RBASE-L Mailing List
Subject: [RBASE-L] - Re: Passed parameters to compiled app
 
<< 
Is it possible to pass one or more parameters to a compiled app?
 
Say the compiled app is called test.exe
I would like to start it thus:  test.exe xxx
Iʼd like the compiled app to be able to capture xxx in a variable to be 
used by the program.
>> 
 
Yes, but you have to call into Windows using the new DLCALL facility to get 
the command line, then parse it yourself.  Here's some code I cribbed from 
Mike Byerly to do this:
 
IF (CHKFUNC('GetCommandLineA')) = 0 then
  STDCALL FUNCTION 'GetCommandLineA' ALIAS 'GetCommandLine' () : TEXT
ENDIF
 
SET VAR vCommandLine = (DLCALL('Kernel32', 'GetCommandLineA'))
 
--
Larry
 

Reply via email to