Thread View: comp.lang.rexx
5 messages
5 total messages
Started by Keith Bennett
Thu, 27 Feb 1997 00:00
How to write C DLL callable from Rexx?
Author: Keith Bennett
Date: Thu, 27 Feb 1997 00:00
Date: Thu, 27 Feb 1997 00:00
22 lines
1519 bytes
1519 bytes
I would like to create a function written in C that can be called by a Rexx program. Is there any documentation on how to do this? Or is there any sample code around for this? What I want to do is write a function in C that gets the contents of a shared memory block and places it in a Rexx variable (or simply returns the contents of the shared memory). The contents will probably be ASCII text. I'm assuming (please correct me if I'm wrong) the best way to do this is to create a DLL in C language written in such a way as to be callable by Rexx. Thanks for any help. - Keith -- -------------------------------------------------------------------------- Keith Bennett Bennett Business Solutions, Inc. Silver Spring, MD USA C++ Software Development kbennett@cpcug.org (301) 871-7696
Re: How to write C DLL callable from Rexx?
Author: Keith Bennett
Date: Thu, 27 Feb 1997 00:00
Date: Thu, 27 Feb 1997 00:00
17 lines
1390 bytes
1390 bytes
In article <5f4tjt$grl@cpcug.org>, Keith Bennett <kbennett@cpcug.org> wrote: >I would like to create a function written in C that can be called by >a Rexx program. Is there any documentation on how to do this? Or is >there any sample code around for this? I am the author of this message. Please disregard it; I have found the answer in the DevCon CD. Boy, is it easy! If only I had known, I would have used it a lot more. - Keith -- -------------------------------------------------------------------------- Keith Bennett Bennett Business Solutions, Inc. Silver Spring, MD USA C++ Software Development kbennett@cpcug.org (301) 871-7696
Re: How to write C DLL callable from Rexx?
Author: Paul Hethmon
Date: Fri, 28 Feb 1997 00:00
Date: Fri, 28 Feb 1997 00:00
30 lines
1819 bytes
1819 bytes
In message <5f4tjt$grl@cpcug.org> - kbennett@cpcug.org (Keith Bennett) writes: :> :>I would like to create a function written in C that can be called by :>a Rexx program. Is there any documentation on how to do this? Or is :>there any sample code around for this? :> :>What I want to do is write a function in C that gets the contents of :>a shared memory block and places it in a Rexx variable (or simply :>returns the contents of the shared memory). The contents will :>probably be ASCII text. :> :>I'm assuming (please correct me if I'm wrong) the best way to do this :>is to create a DLL in C language written in such a way as to be :>callable by Rexx. Keith, There's documentation in the toolkit for doing this. It mainly boils down to declaring your functions a certain way and using some funky rexx structures to pass data. The source for the rexx utility functions is also in the toolkit sample code. I also used the book by Anthony Ruud "Application Programming with Rexx" (I think that's the title). He had a pretty decent section on it. Paul Hethmon Hethmon Brothers phethmon@hethmon.com www.hethmon.com Inet.Mail Internet Mail Server
Re: How to write C DLL callable from Rexx?
Author: Andre Doff
Date: Fri, 28 Feb 1997 00:00
Date: Fri, 28 Feb 1997 00:00
20 lines
1120 bytes
1120 bytes
In article <5f4tjt$grl@cpcug.org>, kbennett@cpcug.org (Keith Bennett) wrote: KB> I would like to create a function written in C that can be called by KB> a Rexx program. Is there any documentation on how to do this? I don't know if the REXX Reference is available on-line at : http://www.developer.ibm.com KB> Or is there any sample code around for this? The IBM OS/2 Toolkit contains, for example, REXXUTIL. Also, there's : ftp://hobbes.nmsu.edu/os2/dev32/vxtech01.zip Ave, Andre Doff adoff@ibm.net
Re: How to write C DLL callable from Rexx?
Author: Carsten Whimster
Date: Sat, 01 Mar 1997 00:00
Date: Sat, 01 Mar 1997 00:00
35 lines
2213 bytes
2213 bytes
In <5f77ao$l4j$4@gaia.ns.utk.edu>, phethmon@hethmon.com (Paul Hethmon) writes:
>In message <5f4tjt$grl@cpcug.org> - kbennett@cpcug.org (Keith Bennett) writes:
>:>
>:>I would like to create a function written in C that can be called by
>:>a Rexx program. Is there any documentation on how to do this? Or is
>:>there any sample code around for this?
>:>
>:>What I want to do is write a function in C that gets the contents of
>:>a shared memory block and places it in a Rexx variable (or simply
>:>returns the contents of the shared memory). The contents will
>:>probably be ASCII text.
>:>
>:>I'm assuming (please correct me if I'm wrong) the best way to do this
>:>is to create a DLL in C language written in such a way as to be
>:>callable by Rexx.
>
>Keith,
>
>There's documentation in the toolkit for doing this. It mainly
>boils down to declaring your functions a certain way and using
>some funky rexx structures to pass data. The source for the rexx
>utility functions is also in the toolkit sample code. I also
>used the book by Anthony Ruud "Application Programming with Rexx"
>(I think that's the title). He had a pretty decent section on it.
That's Anthony Rudd: "Application Development Using OS/2 REXX".
Carsten Whimster
carsten@edm2.com
EDM/2 Editor-in-chief
================================================
The Electronic Developer Magazine for OS/2
http://www.edm2.com/
================================================
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads