G From:	CSBVAX::MRGATE!info-vax-request@kl.sri.com@SMTP  3-APR-1988 12:15  To:	ARISIA::EVERHART' Subj:	Re: Chaining images... THE source     U Received: from ucbvax.berkeley.edu by KL.SRI.COM with TCP; Mon 28 Mar 88 02:43:37-PST , Received: by ucbvax.berkeley.edu (5.59/1.26)( 	id AA29717; Mon, 28 Mar 88 01:44:19 PST9 Received: from USENET by ucbvax.Berkeley.EDU with netnews . 	for info-vax@kl.sri.com (info-vax@kl.sri.com); 	(contact usenet@ucbvax.Berkeley.EDU if you have questions)  Date: 28 Mar 88 02:17:22 GMT3 From: garry@tcgould.tn.cornell.edu  (Garry Wiegand) : Organization: Cornell Engineering && Ithaca Software, Inc.* Subject: Re: Chaining images... THE source- Message-Id: <4202@batcomputer.tn.cornell.edu> # Sender: info-vax-request@kl.sri.com  To: info-vax@kl.sri.com   B In a recent article carl@CITHEX.CALTECH.EDU (Carl J Lydick) wrote:O >I'm one of the people who referred you to LIB$FIND_IMAGE_SYMBOL.  Let me point O >out  again  that  this  works only with SHAREABLE images.  This means that you O >can't chain most images that are linked to be run via a command from  the  DCL 	 >level...   2 Now, if you want to be a real wiz, what you do is:  K A) get your DCL command line from wherever and nibble off the command verb. F    Either use a hard lookup table (ie, "DELE" -> SYS$SYSTEM:DELETE) orB    a program like Verb as a subroutine to find the right image to     activate.J B) Activate that image with SYS$IMGACT - it doesn't have to be a shareable	    image. I C) call Find_Image_Symbol on DCLTABLES.EXE to get the address of the real L    DCL tables (the name I forget, use ANAL/IMAGE to see it) (the tables are .    up in P1 space too, I think, if you prefer)/ D) Tell CLI to parse up the command line please J E) Call the entry point of DELETE, DIRECTORY, or whoever the image turned G    out to be *as a subroutine*. It don't know/can't tell that it isn't  K    running as a normal DCL call, calls CLI like usual, and everything works     out.   K I leave trapping out possible SYS$EXIT calls from the called program as an   exercise for the reader.    I I used to have the code for this and a bunch of other nonsense 3-4 years, B but I just looked around in all the dusty places and don't see it D anymore.  ((Before we got involved in graphics, we were playing someE ideas for some new VMS utilities. I got involved in the above in the  J course of adding an some new switches/abilities to existing VMS commands -D I could have just duplicated the previous VMS functionality and goneB on, but that was tedious and I also didn't want to have to *keep* C duplicating DEC's functionality. So we just used Dec's programs as   subroutines of our own.))   F Oh, the functionality involved was an "UNDELETE" command, with related@ switches DIR/DELETED, DELETE/REALLY, etc etc etc. All blended inH nicely. Cute. (Normal-delete became a surreptious Rename to an invisible parallel directory tree.)   H Never did get around to trying to sell the various things - people stillG are just barely interested in non-Dec *hardware* - VMS add-on software  " was/is an even tougher row to hoe.  4 garry wiegand   (garry@oak.cadif.cornell.edu - ARPA) 		(garry@crnlthry - BITNET) 