🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.nativeapi
Article #7935

Createprocess and /dde apps

#7935
From: Angus
Date: Thu, 09 Dec 2004 00:18
29 lines
2105 bytes
Hi All,

I am trying to createprocess with an  application whose registry setting is
c:\Program Files\Appx.exe /dde
This app opens files of  type .pqr.

Calling CreateProcess("c:\\Program Files\\Appx.exe","Appx.exe //dde
c:\\Filex.pqr"...
works and Filex.pqr opens.

However if i wish to call again with a different file, (Appx has not been
closed),
CreateProcess("c:\\Program Files\\Appx.exe","Appx.exe //dde
c:\\Filey.pqr"...

then a new process is opened and a second instance of Appx.exe opens- and
NOT as i would like, dde to take over, and open the second file in the first
called instance of Appx.

When i open the files direct from explorer, Filex.pqr, and then Filey.pqr,
Appx.exe opens as a single dde program, which is exactly the behaviour i
would like to mimic with createprocess.

Is there a simple solution to this, or must i go deeper. i've looked at the
ddeexcec key, but could find nothing useful.
I use the process data from Createprocess so other ways of opening the app
are of no use to me.

Any help on this would be more than welcome. Thanks in advance, Angus.
Technical Details
Message-ID: <41b799c6$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!proxad.net!213.200.89.82.MISMATCH!tiscali!newsfeed1.ip.tiscali.net!border2.nntp.ams.giganews.com!border1.nntp.ams.giganews.com!nntp.giganews.com!pe2.news.blueyonder.co.uk!blueyonder!news-peer-test!btnet!newsfeed.bt.es!caladan.landsraad.net!newsgroups.borland.com!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,273ad0e680078816,start
X-Google-Attributes: gid10cc67,public
X-Google-Language: ENGLISH,ASCII-7-bit
Reply-To: "Angus" <anguspickton@yahoo.com>
From: "Angus" <aguspickton@yahoo.com>
Newsgroups: borland.public.cppbuilder.nativeapi
Subject: Createprocess and /dde apps
Date: Thu, 9 Dec 2004 13:18:24 +1300
Lines: 32
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1437
X-MIMEOLE: Produced By Microsoft MimeOLE V6.00.2800.1441
NNTP-Posting-Host: 219.88.83.204
Message-ID: <41b799c6$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1102551494 219.88.83.204 (8 Dec 2004 16:18:14 -0800)
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!proxad.net!213.200.89.82.MISMATCH!tiscali!newsfeed1.ip.tiscali.net!border2.nntp.ams.giganews.com!border1.nntp.ams.giganews.com!nntp.giganews.com!pe2.news.blueyonder.co.uk!blueyonder!news-peer-test!btnet!newsfeed.bt.es!caladan.landsraad.net!newsgroups.borland.com!not-for-mail