| TIP: Click on subject to list as thread! | ANSI |
| echo: | |
|---|---|
| to: | |
| from: | |
| date: | |
| subject: | Toolkit 3.0 Problem |
Ho, Dave--
As you may remember, I posted a message to you on the IBM PCC BBS to
the effect that my REXX extended function DLL failed when compiled with
the Warp Toolkit (3.0), the one that came with the "Special Edition" of
DevCon 5. I have devised a small test case that I send to you with best
wishes for a solution to my problem (or, at least, a suggestion as to
what might be happening, with a potential workaround)! In the meantime,
I will stick with TOOLKT21.
The following is TEST.CMD - the test "driver."
__________________
/* TEST.CMD - Testing an "external function" with WarpTlkt */
call RxFuncAdd 'BINGO', 'BINGO', 'Bingo'
call 'Bingo' bingo
exit
__________________
Next, the source code for the DLL
__________________
/* bingo.c - a test DLL for text.cmd */
#define INCL_RXFUNC /* Loads REXX "external function" type */
#define INCL_NOMAPI /* definitions and function prototypes */
#include
#include
#include
#include
RexxFunctionHandler Bingo; /* Type definition in rexxsaa.h */
ULONG Bingo( /* REXX External Function */
CHAR *name,
ULONG Numargs,
RXSTRING Args[],
CHAR *Queuename,
RXSTRING *retstr) /* Output string goes here */
{
char InputString[80];
printf("We are in the external function\n");
strcpy(InputString,Args[0].strptr);
printf("We have read the string from Args[0]\n");
printf("\n%s\n",InputString);
return 0;
}
__________________
And, finally, BINGO.DEF (transliterated from a "useful" DEF file):
__________________
LIBRARY BINGO INITINSTANCE TERMINSTANCE
PROTMODE
DATA MULTIPLE NONSHARED READWRITE LOADONCALL
CODE LOADONCALL
EXPORTS Bingo
___________________
When BINGO is compiled from the command line with:
icc /ge- /rn bingo.c bingo.def
using TOOLKT21, and run in an OS/2 window, everything works as expected.
When compiled using the Warp TOOLKIT, running TEST blows up with an
access exception after the first printf ("We are in the...), which shows
that it never got the passed argument. I guess I could chase further,
but I've never gotten around to learning IPMD (as you can see from the
scattered printfs in bingo.c).
If I weren't so tired of all this, I would attempt to compile and
run the REXXUTIL sample that comes with Toolkit 3.0. I did find out
that it wouldn't compile the REXXUTIL sample from Toolkt21 (I ended up
with an unresolved external).
Any words of wisdom you (or anyone else) might offer will be
gratefully appreciated. If you have no words, I will post this to the
DevCon internet address, since I don't know where else to send it. (I
don't indulge in CIS nor OS/2 BBS; I'm paying AT&T enough, without
getting any other by-the-minute provider into the act!)
Thanks.
--Murray
___
* MR/2 2.13 #120 * "Have a frabjous day!" He chortled in his joy.
---
* Origin: 2" x 4" bbs - a basic board - (914) 271-9407 (1:2625/108)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: 2625/108 1 261/1023 396/1 3615/50 229/2 12/2442 711/409 54/54 711/808 @PATH: 711/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™.