Discussion:
DDE problems in Visual C++ 7.0
(too old to reply)
Boris
2004-12-10 00:48:45 UTC
Permalink
I converted my application to Visual C++ 7.0 (from 6.0) and noticed that DDE
does not work properly anymore: if the application is running, double-click
on a shortcut does not open the document.

I generated a new project using VC++ 7.0 App Wizard - simple MFC Application
just to test DDE. I can start the application from Visual Studio and create
two document files on desktop. If I double click on any of them nothing
seems to happen. If I close the test application and then double-click the
document, the application starts in invisible mode (I only see it in the
task manager)

Just for kicks and grans I generated similar project using VC++ 6.0 and
tested same things. It worked as I expected - double click on document opens
application and if an application is open - it opens the selected document
and if the document is open, but not active it activates is.

My question is: why VC 7.0 works differently from 6.0? And what can I do to
get my documents to open ?

I switched to 7.0 version to take advantage of AutoComplete interfaces. I do
not want to loose it, but I do not want to lose DDE feature either

Thanks


--

- Boris

www.RegmagiK.com, Registry Editor that works for me
David Lowndes
2004-12-10 14:30:07 UTC
Permalink
Post by Boris
I converted my application to Visual C++ 7.0 (from 6.0) and noticed that DDE
does not work properly anymore: if the application is running, double-click
on a shortcut does not open the document.
Are you using VC7.0 or 7.1 (VS2003)? There's a known missing line of
code in the OnDDDEExecute method in the 7.1 version. Search for
OnDDEExecute using Google groups and you'll find several posts about
it - and a solution.

Dave
--
MVP VC++ FAQ: http://www.mvps.org/vcfaq
Boris
2004-12-11 23:38:54 UTC
Permalink
Yes, thank you for your reply. This solved the problem

--

- Boris

www.RegmagiK.com, Registry Editor that works for me
Post by David Lowndes
Post by Boris
I converted my application to Visual C++ 7.0 (from 6.0) and noticed that DDE
does not work properly anymore: if the application is running, double-click
on a shortcut does not open the document.
Are you using VC7.0 or 7.1 (VS2003)? There's a known missing line of
code in the OnDDDEExecute method in the 7.1 version. Search for
OnDDEExecute using Google groups and you'll find several posts about
it - and a solution.
Dave
--
MVP VC++ FAQ: http://www.mvps.org/vcfaq
Loading...