TIP: Click on subject to list as thread! ANSI
echo: os2prog
to: David Noon
from: Peter Fitzsimmons
date: 1997-01-14 23:33:32
subject: writing REXX DLL`s

DN> Watcom uses __dll_initialize() and __dll_terminate(); these are
 DN> documented in the Programmer's Guide. However, the first one is not
 DN> wholly satisfactory, since it is called after the run-time library has
 DN> been started and there are no parameters passed to it. This means that
 DN> the HMODULE that OS/2 put into the EDX register is gone, and so it is


I was about to suggest writing an *.ASM stub,  to be the new starting
address of the DLL,  and then call the real Watcom dll entry point.

While digging around the code to find the name of the starting point,I found this:


 extern  unsigned        __hmodule;

It is set up in src\startup\dmaino32.c



--- Maximus/2 3.00
* Origin: Sol 3 * Toronto * V.32 * (905)858-8488 (1:259/414)
SEEN-BY: 50/99 54/99 270/101 620/243 625/0 160 711/401 409 410 413 430 808
SEEN-BY: 711/809 934 955 712/311 407 505 506 517 623 624 704 713/317 800/1
@PATH: 259/414 99 2424/38 11 10 396/1 270/101 712/624 711/808 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™.