Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!seismo!caip!nike!ucbcad!ucbvax!rayssd.UUCP!m1b From: m1b@rayssd.UUCP (M. Joseph Barone) Newsgroups: mod.computers.vax Subject: SMG problem and help requested Message-ID: <8607251720.AA15195@rayssd.UUCP> Date: Fri, 25-Jul-86 13:20:53 EDT Article-I.D.: rayssd.8607251720.AA15195 Posted: Fri Jul 25 13:20:53 1986 Date-Received: Sat, 26-Jul-86 11:14:44 EDT Sender: daemon@ucbvax.BERKELEY.EDU Organization: The ARPA Internet Lines: 65 Approved: info-vax@sri-kl.arpa Has anyone had any success with the SMG routine, SMG$DISABLE_UNSOLICITED_INPUT in VAX C. I'm running VMS V4.4 and C V2.2. I tried the three permutations below and received the noted error messages. The first attempt is the way it is documented in the RTL Part II (5D) reference manual. Attempt #1: ... unsigned int new_pid; int status; status = smg$create_pasteboard(&new_pid,0,0,0,0); if (status != SS$_NORMAL) exit(status); status = smg$disable_unsolicited_input(&new_pid); if (status != SS$_NORMAL) exit(status); ... The error message was "invalid I/O channel" Attempt #2: ... unsigned int new_pid; int status; int chan; $DESCRIPTOR(TERM,"SYS$COMMAND"); status = sys$assign(&TERM, &chan, 0, 0); if (status != SS$_NORMAL) exit(status); status = smg$create_pasteboard(&new_pid,0,0,0,0); if (status != SS$_NORMAL) exit(status); status = smg$disable_unsolicited_input(&chan); if (status != SS$_NORMAL) exit(status); ... The error message was "invalid pasteboard-id" Attempt #3: ... unsigned int new_pid,new_kid; int status; int chan; $DESCRIPTOR(TERM,"SYS$COMMAND"); status = sys$assign(&TERM, &chan, 0, 0); if (status != SS$_NORMAL) exit(status); status = smg$create_pasteboard(&new_pid,0,0,0,0); if (status != SS$_NORMAL) exit(status); status = smg$create_virtual_keyboard(&new_kid,&TERM,0,0); if (status != SS$_NORMAL) exit(status); status = smg$disable_unsolicited_input(&new_kid); if (status != SS$_NORMAL) exit(status); ... The error message was "invalid pasteboard-id" The fact that I get an invalid I/O channel error when I use the routine as it is documented suggests that there is something wrong with the routine. However, I hestitate to put the blame on the run time library. Should this be SPRed or is it merely a user error? Thanks in advance, Joe Barone {allegra, cci632, gatech, ihnp4, linus, mirror, raybed2}!rayssd!m1b Raytheon Co, Submarine Signal Div., 1847 West Main Rd, Portsmouth, RI 02871