From:	SMTP%"carl@SOL1.GPS.CALTECH.EDU" 14-JUN-1994 15:54:45.41
To:	EVERHART
CC:	
Subj:	Re: System service to implement "$ SET MESSAGE filespec" ???

From: carl@SOL1.GPS.CALTECH.EDU (Carl J Lydick)
X-Newsgroups: comp.os.vms
Subject: Re: System service to implement "$ SET MESSAGE filespec" ???
Date: 14 Jun 1994 11:41:34 GMT
Organization: HST Wide Field/Planetary Camera
Lines: 40
Distribution: world
Message-ID: <2tk51e$rr7@gap.cco.caltech.edu>
Reply-To: carl@SOL1.GPS.CALTECH.EDU
NNTP-Posting-Host: sol1.gps.caltech.edu
To: Info-VAX@CRVAX.SRI.COM
X-Gateway-Source-Info: USENET

In article <771515234snz@nick01.demon.co.uk>, nick@nick01.demon.co.uk (Nick de Smith) writes:
=In article <01HDDLFW4UUSQT5RQF@psulias.psu.edu> JLW@psulias.psu.edu writes:
=
=> I have an application which needs to choose, at run time, between three or
=> more nonexecutable image message files.  Once the choice is made, the chosen
=> message file is to become the process level message file for the duration of
=> the application.
=
= [*snip* - various over-complicated possibilities removed]

Overcomplicated?  What's overcomplicated about something like:

#include ssdef
#include descrip
test()
{	int handle();
	$DESCRIPTOR(filename, "SYSMGTMSG");
	$DESCRIPTOR(symbol, "This symbol won't be there");
	long symval;
	$DESCRIPTOR(imagname, "SYS$MESSAGE:.EXE");
	long msgvec[2] = { 0x000F0001, 0x00A3809C };

	SYS$PUTMSG(msgvec, 0, 0, 0);
	LIB$ESTABLISH(handle);
	LIB$FIND_IMAGE_SYMBOL(&filename, &symbol, &symval, &imagname);
	LIB$REVERT();
	SYS$PUTMSG(msgvec, 0, 0, 0);
}

int handle(long *sigargs, long *mechargs)
{	return 1;
}
--------------------------------------------------------------------------------
Carl J Lydick | INTERnet: CARL@SOL1.GPS.CALTECH.EDU | NSI/HEPnet: SOL1::CARL

Disclaimer:  Hey, I understand VAXen and VMS.  That's what I get paid for.  My
understanding of astronomy is purely at the amateur level (or below).  So
unless what I'm saying is directly related to VAX/VMS, don't hold me or my
organization responsible for it.  If it IS related to VAX/VMS, you can try to
hold me responsible for it, but my organization had nothing to do with it.

