Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.sys.acorn.programmer > #6150

Re: Calling Ghostscript from BASIC

From Ronald <gettingchoppy@gmail.com>
Newsgroups comp.sys.acorn.programmer
Subject Re: Calling Ghostscript from BASIC
Date 2020-06-13 13:01 +1200
Organization -
Message-ID <1a0cb87f58.beeb@-.-> (permalink)
References (2 earlier) <slrnrdslot.7k1.news@stevefryatt.org.uk> <mpro.qbmdp5006xksu081o.spamtrap@mw-software.com> <92818e7d58.harriet@bazleyfamily.co.uk> <rbnmh0$77r$1@dont-email.me> <54d9f07d58.harriet@bazleyfamily.co.uk>

Show all headers | View raw


In message <54d9f07d58.harriet@bazleyfamily.co.uk>
          Harriet Bazley <harriet@bazleyfamily.co.uk> wrote:

> On 9 Jun 2020 as I do recall,
>           druck  wrote:
> 
> > On 08/06/2020 21:15, Harriet Bazley wrote:
> > > On 8 Jun 2020 as I do recall,
> > >            Martin Wuerthner  wrote:
> > >> Then, you listen for the messages that TaskWindows sends to the
> > >> given handle (i.e., to your application since you passed your own
> > >> task handle), most notably TaskWindow_Ego, which tells your
> > >> application the handle of your child.
> > > 
> > > Ah, that looks *much* more elegant than hacking around by doing literal
> > > string comparisons (which sounds like a recipe for obscure bugs in the
> > > future)...  except that from the StronHelp manuals it sounds rather as
> > > if you need to duplicate all functionality of the Taskwindow handler
> > > yourself, e.g. when the child task produces output, you need to display
> > > the data.   :-(
> > 
> > You don't have to display the TaskWindow's task's output in a scrolling 
> > window. If you are calling a program to process a file (as in this case 
> > with Ghostscript) the only output you are interested in is error 
> > messages, and you can capture this output and display in an error box.
> >
> Yes, but from Infozip's point of view I'm launching a program which can
> potentially prompt the user for input (and will hang mysteriously if it
> fails to get it).   Unfortunately detecting the identity of the child
> with TaskWindow_Ego doesn't sound as if it will work, if I can only do
> that by taking over the entire taskwindow handling myself.
> 
> 

I'd like to be able to use return codes from a unixlib program
but when called from an Obey file.
It looks like the only way to do this would be to have either a BASIC
or C wrapper/shell to do the running.
The only advantage would be that it could set a system variable that
an Obey file could read for any programs return code, avoiding setting
the system variable in every individual (ported) program.
Don't know how well this would work or if it would help Harriets case.

Ronald

Back to comp.sys.acorn.programmer | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

Calling Ghostscript from BASIC "Rob Hemmings (News)" <rhnews@dsl.pipex.com> - 2020-06-08 15:22 +0100
  Re: Calling Ghostscript from BASIC Harriet Bazley <harriet@bazleyfamily.co.uk> - 2020-06-08 15:39 +0100
    Re: Calling Ghostscript from BASIC "Rob Hemmings (News)" <rhnews@dsl.pipex.com> - 2020-06-08 15:44 +0100
    Re: Calling Ghostscript from BASIC Steve Fryatt <news@stevefryatt.org.uk> - 2020-06-08 16:19 +0100
      Re: Calling Ghostscript from BASIC Martin Wuerthner <spamtrap@mw-software.com> - 2020-06-08 20:22 +0200
        Re: Calling Ghostscript from BASIC Harriet Bazley <harriet@bazleyfamily.co.uk> - 2020-06-08 21:15 +0100
          Re: Calling Ghostscript from BASIC druck <news@druck.org.uk> - 2020-06-09 10:58 +0100
            Re: Calling Ghostscript from BASIC Harriet Bazley <harriet@bazleyfamily.co.uk> - 2020-06-09 15:09 +0100
              Re: Calling Ghostscript from BASIC Ronald <gettingchoppy@gmail.com> - 2020-06-13 13:01 +1200
                Re: Calling Ghostscript from BASIC druck <news@druck.org.uk> - 2020-06-13 12:03 +0100
                Re: Calling Ghostscript from BASIC Ronald <gettingchoppy@gmail.com> - 2020-06-14 01:29 +1200
        Re: Calling Ghostscript from BASIC "Rob Hemmings (News)" <rhnews@dsl.pipex.com> - 2020-06-08 23:37 +0100
  Re: Calling Ghostscript from BASIC Ronald <gettingchoppy@gmail.com> - 2020-06-14 16:38 +1200
    Re: Calling Ghostscript from BASIC Steve Fryatt <news@stevefryatt.org.uk> - 2020-06-14 07:40 +0100
      Re: Calling Ghostscript from BASIC "Rob Hemmings (News)" <rhnews@dsl.pipex.com> - 2020-06-14 08:48 +0100
      Re: Calling Ghostscript from BASIC Ronald <gettingchoppy@gmail.com> - 2020-06-14 20:27 +1200
        Re: Calling Ghostscript from BASIC Steve Fryatt <news@stevefryatt.org.uk> - 2020-06-14 10:01 +0100
          Re: Calling Ghostscript from BASIC Harriet Bazley <harriet@bazleyfamily.co.uk> - 2020-06-14 15:41 +0100
            Re: Calling Ghostscript from BASIC Ronald <gettingchoppy@gmail.com> - 2020-06-15 14:51 +1200
              Re: Calling Ghostscript from BASIC druck <news@druck.org.uk> - 2020-06-15 08:56 +0100
                Re: Calling Ghostscript from BASIC Ronald <gettingchoppy@gmail.com> - 2020-06-15 20:30 +1200
        Re: Calling Ghostscript from BASIC Harriet Bazley <harriet@bazleyfamily.co.uk> - 2020-06-14 15:44 +0100

csiph-web