| TIP: Click on subject to list as thread! | ANSI |
| echo: | |
|---|---|
| to: | |
| from: | |
| date: | |
| subject: | writing REXX DLL`s |
On Friday, 97/01/10, Darin McBride wrote to Jonathan de Boyne Pollard about "writing REXX DLL's" as follows: DM> BTW, is there a user-function that is called on init (and DM> term)? I can't seem to find a reference to it... :-/ Hi Darin, Watcom uses __dll_initialize() and __dll_terminate(); these are documented in the Programmer's Guide. However, the first one is not wholly satisfactory, since it is called after the run-time library has been started and there are no parameters passed to it. This means that the HMODULE that OS/2 put into the EDX register is gone, and so it is difficult to determine any information about the DLL at run time. For example, I would like to be able to determine the fully qualified path/filename of a DLL from within that DLL. I cannot see any way to achieve that using the Watcom compiler, since I cannot come up with any way to obtain the HMODULE to call DosQueryModuleName(). Using the IBM compiler I can capture the HMODULE during _DLL_InitTerm() and everything is copasetic. But using Watcom leaves me snookered. Any suggestions from echo participants will be welcome. [Yeah, I know: just use the IBM compiler.] Regards Dave * KWQ/2 1.2i * Newbie: (n) someone who thinks RTFM is a 4-letter word. --- Maximus/2 3.01* Origin: DoNoR/2,Woking UK (44-1483-725167) (2:440/4) 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: 440/4 141/209 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™.