From: "Dmitry A. Kazakov" <mailbox@dmitry-kazakov.de>
Subject: Re: How to start another application within an ADA program?
Date: Tue, 26 Nov 2013 15:31:56 +0100
Date: 2013-11-26T15:31:56+01:00 [thread overview]
Message-ID: <12m1sb0bn92vj.19m35llgjgke2$.dlg@40tude.net> (raw)
In-Reply-To: 395650cd-0919-4de3-b671-0d16056c85ed@googlegroups.com
On Tue, 26 Nov 2013 02:50:15 -0800 (PST), tolkamp wrote:
> Is it possible to start an other apllication (eg Microsoft Word) within an
> ADA program? If so, how do I do it?
1. You can use whatever system calls available. E.g. UNIX's system/exec* or
Windows' CreateProcess. For the latter use Win32 bindings available with
GNAT.
2. A portable way to do it is, already mentioned, GNAT's OS library, or GTK
(Glib). Here is the bindings:
http://www.dmitry-kazakov.de/ada/gtkada_contributions.htm#10
You can feed the spawned process' input and catch its output directly or
using GTK's text buffers.
I believe that Qt also has some means to spawn processes.
--
Regards,
Dmitry A. Kazakov
http://www.dmitry-kazakov.de
next prev parent reply other threads:[~2013-11-26 14:31 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-11-26 10:50 How to start another application within an ADA program? tolkamp
2013-11-26 11:10 ` Graham Stark
2013-11-26 12:29 ` Rego, P.
2013-11-26 13:00 ` Jacob Sparre Andersen
2013-11-26 14:31 ` Dmitry A. Kazakov [this message]
2013-11-26 20:42 ` gautier_niouzes
2013-11-27 15:25 ` Thomas Løcke
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox