🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Createprocess and /dde apps

#7938
From: Remy Lebeau (TeamB)
Date: Thu, 09 Dec 2004 02:25
36 lines
2180 bytes
"Angus" <aguspickton@yahoo.com> wrote in message
news:41b799c6$1@newsgroups.borland.com...

> 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.
<snip>

You can't use CreateProcess() to initiate DDE conversations.  You can try
using ShellExecute(), though, specifying just the filename and letting the
OS decide which application to run and how to pass the filename to it.

> 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.

Double-clicking a file in Explorer invokes ShellExecute().

> i've looked at the ddeexcec key, but could find nothing useful.

That is because you probably did not understand what it was telling you.  It
is actually quite helpful, but requires a lot of extra work on your part in
order to actually utilize it.  Better to let ShellExecute() do the work for
you.

> I use the process data from Createprocess so other ways of opening
> the app are of no use to me.

You cannot use CreateProcess() for what you are asking.  It does not support
DDE.  What process data are you using exactly?  Perhaps you can obtain it
through other means.


Gambit
Technical Details
Message-ID: <41b7b776$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news.glorb.com!logbridge.uoregon.edu!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail
References: <41b799c6$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,273ad0e680078816
X-Google-Attributes: gid10cc67,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: "Remy Lebeau \(TeamB\)" <no.spam@no.spam.com>
Newsgroups: borland.public.cppbuilder.nativeapi
References: <41b799c6$1@newsgroups.borland.com>
Subject: Re: Createprocess and /dde apps
Date: Wed, 8 Dec 2004 18:25:11 -0800
Lines: 38
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1409
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1409
NNTP-Posting-Host: 68.69.17.41
Message-ID: <41b7b776$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1102559094 68.69.17.41 (8 Dec 2004 18:24:54 -0800)
Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news.glorb.com!logbridge.uoregon.edu!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail