TIP: Click on subject to list as thread! ANSI
echo: os2prog
to: All
from: Phil Crown
date: 1996-04-06 20:08:58
subject: Making REXX .DLL`s

I am trying to make a REXX callable .DLL with Borland C++ for OS/2 v2.0,
so far unsuccessfully.  ie. a .DLL that is loaded with REXX's
RxLoadFunc and run from REXX.

I thought I had a test version working a long time ago, but now I can't
get it to work.

I'm just wondering if anybody has successfully created a REXX callable
.DLL with BCOS/2?  Maybe there is a bug in BCOS/2???

I'm using rexxsaa.h from the Warp Toolkit on DevCon 9.

I read that entry points in .DLL's must be MRESULT EXPENTRY.  However,
the vxtech* examples for Watcom/CSet++ delcare the REXX callable
functions as ULONG and are protoyped with RexxFunctionHandler.
RexxFunctionHandler is typedef'ed as ULONG APIENTRY, so this is an
inconsistentency already in rexxsaa.h and the vxtech* examples.

I've tried both MRESULT EXPENTRY and RexxFunctionHandler/ULONG and
neither works.

btw, what is _Packed defined as in IBM's CSet++ (or VACC)?  I had to
define it in rexxsaa.h for BCOS/2, I just used,

#define _Packed

Maybe this is my problem?

Thanks!

Phil
Fido:  1:124/8014.1 | Internet:  phil.crown{at}bluecafe.com


--- Blue Wave/OS2 v2.30
* Origin: * MacSavvy OS/2 BBS * Dallas, Texas * 214-250-4479 * (1:124/1208)
SEEN-BY: 50/99 78/0 270/101 620/243 711/401 409 410 413 430 808 809 934 955
SEEN-BY: 712/407 515 517 628 713/888 800/1 7877/2809
@PATH: 124/1208 1 396/1 270/101 712/515 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™.