TIP: Click on subject to list as thread! ANSI
echo: os2prog
to: All
from: Phil Crown
date: 1996-04-07 10:56:36
subject: Making REXX .DLL`s

-=> Quoting Phil Crown to All <=- 

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

Okay, I've got it working now... not sure what the heck was going on,
but this is what I think happened...

I ended up using RexxFunctionHandler to prototype with and delcared the
entry points as ULONG APIENTRY.

If didn't call PtcDropFuncs / RxFuncDrop in the test.cmd used to test
the .DLL, it was causing some strange problems.  Once the .DLL is loaded
it must be unloaded with *DropFuncs / RxFuncDrop before I can recompile
and test any changes.  Otherwise, the only way to unload the .DLL is to
reboot.  Even though the .DLL didn't appear to be loaded, because I
could copy the freshly compiled version over the version in my LIBPATH.

Not really sure what the heck was going on, but its working now.

It *is* possible to write REXX .DLL's with BCOS/2 v2.0... :-)

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™.