TIP: Click on subject to list as thread! ANSI
echo: os2prog
to: Andrew Forster
from: Mario Semo
date: 1994-11-25 12:38:16
subject: ?Passing information to Rexx

Hello Andrew,

On Nov 21 20:53 94, Andrew Forster of 2:241/545.2 wrote:

 AF> I would like to pass information from an exe (written in C) to a REXX 
 AF> batch. Has anybody got an idea how this can be done? I don't know 
 AF> anything about Rexx but am fairly good with C. An example or a pointer 
 AF> where I can find information on this topic would make me really happy. 
 AF> (I'm using IBMs C Set++, perhaps it's hidden somewhere in the .infs)

there is an interface to REXX in the toolkit. it used eg. to use REXX as a
macro language for programs. With this interface you can set REXX variables
from your C prog and v.v. 

sample is in toolkit:

eq:

Directory of I:\toolkt21\rexx\samples\callrexx

12.03.93  18.16       1354           0  backward.fnc

this is a REXX program

12.03.93  18.16       3789           0  callrexx.c

and this a C program, passing data to and reading from the above rexx. 

you can also add a subcommand handler to REXX (from within your EXE) (eg.
EPM  and PMGlobe32 are doing so) do allow statements like:

'set xy=3'
'set cursor=4'
...


(function to be looked at : RexxRegisterSubComEXE (or alike)).

Mario

--- 


* Origin: LC/32 Development Team-Vienna-Austria (2:310/14.11)
SEEN-BY: 12/2442 54/54 620/243 624/50 632/348 640/820 690/660 711/409 410 413
SEEN-BY: 711/430 807 808 809 934 942 949 712/353 623 713/888 800/1
@PATH: 310/14 90 30 2490/1001 24/24 396/1 3615/50 229/2 12/2442
@PATH: 711/409 54/54 711/808 809 934

SOURCE: echomail via fidonet.ozzmosis.com

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.