PDA

View Full Version : Dynamic Data Exchange (DDE) Server in Qt Application



tonka3000
19th November 2012, 12:35
Hy@everyone,

I have a problem and after days of seraching i can't find anything good to use.

My problem:
I have a Qt-Application (xD) and i wanna have the following behaviour:
When the user double-click a file in the windows explorer the file open this file in our application. If the user double-Click on another file this file should open i the same instance as the file before.

I know that the "file to application"-binding is called "file association" and in windows this information is stored into the windows-registry (and i know how to do it). I have take a look at it and find out that all programs (Word, Excel, CATIA, Adobe Reader, etc.) that have my desired behaviour use a DDE (Dynamic Data Exchange (http://en.wikipedia.org/wiki/Dynamic_Data_Exchange))-Server to do this. This is an very old technology but it seems it is the only technology which can do that.
In a MFC-based Application there is already an DDE-Server included. For Qt i can't find anything (only a client to communicate to an existing DDE-Server).

Does anyone have a DDE-Server Implementation for an Qt-Application or how can i make such a behaviour for an Qt-Application?

OS: Windows 7 x86 & x64
Qt: 4.7.3

Thanks in advance
Tonka

tonka3000
21st December 2012, 12:28
I have found a class. For anybody who have an similar problem =>http://qt-project.org/wiki/Assigning_a_file_type_to_an_Application_on_Windows

Greetings
Tonka

pauldunar
2nd March 2013, 06:43
Nice post. I learn something more challenging on different blogs everyday. It will always be stimulating to read content from other writers and practice a little something from their store.