From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-0.3 required=5.0 tests=BAYES_00, REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 Path: border1.nntp.dca3.giganews.com!backlog3.nntp.dca3.giganews.com!border3.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!goblin1!goblin3!goblin2!goblin.stu.neva.ru!aioe.org!.POSTED!not-for-mail From: "Dmitry A. Kazakov" Newsgroups: comp.lang.ada Subject: Re: How to start another application within an ADA program? Date: Tue, 26 Nov 2013 15:31:56 +0100 Organization: cbb software GmbH Message-ID: <12m1sb0bn92vj.19m35llgjgke2$.dlg@40tude.net> References: <395650cd-0919-4de3-b671-0d16056c85ed@googlegroups.com> Reply-To: mailbox@dmitry-kazakov.de NNTP-Posting-Host: IenaDxMXK2hi7fvYcb+MlQ.user.speranza.aioe.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Complaints-To: abuse@aioe.org User-Agent: 40tude_Dialog/2.0.15.1 X-Notice: Filtered by postfilter v. 0.8.2 X-Original-Bytes: 1580 Xref: number.nntp.dca.giganews.com comp.lang.ada:183998 Date: 2013-11-26T15:31:56+01:00 List-Id: 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