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


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

Re: Calling Ghostscript from BASIC

From "Rob Hemmings (News)" <rhnews@dsl.pipex.com>
Newsgroups comp.sys.acorn.programmer
Subject Re: Calling Ghostscript from BASIC
Date 2020-06-08 23:37 +0100
Organization None
Message-ID <587d9b7a25rhnews@dsl.pipex.com> (permalink)
References <587d6e2a47rhnews@dsl.pipex.com> <20b36f7d58.harriet@bazleyfamily.co.uk> <slrnrdslot.7k1.news@stevefryatt.org.uk> <mpro.qbmdp5006xksu081o.spamtrap@mw-software.com>

Show all headers | View raw


In article <mpro.qbmdp5006xksu081o.spamtrap@mw-software.com>,
   Martin Wuerthner <spamtrap@mw-software.com> wrote:
> Steve Fryatt <news@stevefryatt.org.uk> wrote:

> > On 2020-06-08, Harriet Bazley <harriet@bazleyfamily.co.uk> wrote:
> > 

[Snip]

> That might be better, but there is still more guesswork involved and
> less control than using the TaskWindow protocol, which was specifically
> designed to allow tasks to control their TaskWindow children. Using
> this protocol also makes you independent of any registered TaskWindow
> provider since your application itself becomes the TaskWindow provider.

> The key point is to launch the child by passing
>   TaskWindow <command> -wimpslot <slot> -name <name> -quit
>                        -task <my_task_handle> -txt <arbitrary_id>
> (obviously, all in one line) to Wimp_StartTask.

> 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. If you run several children, you can distinguish
> them because the Ego message quotes the arbitrary id you passed.
> TaskWindow_Morio tells you that your child has died. While the child
> runs, you can suspend it, resume it and kill it by sending messages
> TaskWindow_Suspend/Resume/Morite to your child handle. By listening to
> TaskWindow_Output you can receive the output of your child, e.g., any
> error messages from Ghostscript.

> That is how GView (http://www.mw-software.com/software/gview/gview.html)
> calls Ghostscript.

Thanks very much indeed to both Steve and Martin for the very thorough
and helpful explanations.  Really useful although I'm going to have to do
some more reading of my Programmer's Reference Manuals!

-- 
------------------------------------------------------------- 
 Rob Hemmings                        Southport       
 
 rhnews@dsl.pipex.com                  

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