Important alert: (current site time 7/16/2013 1:00:09 AM EDT)
 

winzip icon

DDE Example - communicating between apps

Email
Submitted on: 5/1/2002 8:28:22 AM
By: Peeter Puusemp 
Level: Intermediate
User Rating: By 36 Users
Compatibility: VB 5.0, VB 6.0
Views: 32133
 
     This tutorial demonstrates DDE conversation with which you can easyly communicate between your apps.

 
winzip iconDownload code

Note: Due to the size or complexity of this submission, the author has submitted it as a .zip file to shorten your download time. Afterdownloading it, you will need a program like Winzip to decompress it.Virus note:All files are scanned once-a-day by Planet Source Code for viruses, but new viruses come out every day, so no prevention program can catch 100% of them. For your own safety, please:
  1. Re-scan downloaded files using your personal virus checker before using it.
  2. NEVER, EVER run compiled files (.exe's, .ocx's, .dll's etc.)--only run source code.
  3. Scan the source code with Minnow's Project Scanner

If you don't have a virus scanner, you can get one at many places on the net including:McAfee.com

 
Terms of Agreement:   
By using this code, you agree to the following terms...   
  1. You may use this code in your own programs (and may compile it into a program and distribute it in compiled format for languages that allow it) freely and with no charge.
  2. You MAY NOT redistribute this code (for example to a web site) without written permission from the original author. Failure to do so is a violation of copyright laws.   
  3. You may link to this code from another website, but ONLY if it is not wrapped in a frame. 
  4. You will abide by any additional copyright restrictions which the author may have placed in the code or code's description.

Report Bad Submission
Use this form to tell us if this entry should be deleted (i.e contains no code, is a virus, etc.).
This submission should be removed because:

Your Vote

What do you think of this code (in the Intermediate category)?
(The code with your highest vote will win this month's coding contest!)
Excellent  Good  Average  Below Average  Poor (See voting log ...)
 

Other User Comments
5/1/2002 10:28:06 AMMoe_Man

I tried voting but it wouldnt let me. Your code is good. just wondering why you chose that background
(If this comment was disrespectful, please report it.)

 
5/1/2002 12:45:56 PMMohammad A.A

How come we can not vote any more? Sorry
(If this comment was disrespectful, please report it.)

 
5/1/2002 1:37:08 PMPeeter Puusemp jr.

Moe Man, did you meant that railroad?
I just didn't have a picture of mine in my computer. (Actually one old is, but it's too old).

Yes, I encounted the same problem, but after some try I actually could vote.
(If this comment was disrespectful, please report it.)

 
5/2/2002 5:25:08 PMSaurabh Gupta

I had problems with voting too :(

The new verfication system isnt all that good. The verification code is not very clear. Small and caps cant be distinguished. I could vote only after 2-3 tries.

Otherwise your code is good... 5 from me ;)
(If this comment was disrespectful, please report it.)

 
5/3/2002 10:00:28 AMEdin Omeragic

i never know whats for LinkTopic and LinkExecute
(If this comment was disrespectful, please report it.)

 
6/13/2002 6:50:04 PMFontaine

This was an excellent sample app. Worked out of the box with plenty of comments. Great Job
(If this comment was disrespectful, please report it.)

 
7/14/2003 8:36:45 AM

Good tutorial, usefull for me!
(If this comment was disrespectful, please report it.)

 
8/21/2003 2:48:59 AMPeeter Puusemp jr.

A little mistake: In Program 1 in the section 4 I typed "Program 2 (in section 5)", but it should be "Program 2 (in section 4)"

I don't have time to change it now, but it should not disturb, it's just a typing mistake.
(If this comment was disrespectful, please report it.)

 
8/21/2003 2:58:49 AMPeeter Puusemp jr.

Edin Omeragic, LinkTopic and LinkExecute can be whatever you want, you can choose them yourself.

;)
(If this comment was disrespectful, please report it.)

 
8/31/2003 10:57:59 AMFilip Wielewski

relly good! i didn't know anything about DDE but I understood everything from your code. Great commented!
(If this comment was disrespectful, please report it.)

 
8/23/2004 9:03:34 AMShabbir

Is this your work, i have this same app somewhere else?
(If this comment was disrespectful, please report it.)

 
8/23/2004 11:59:59 PMBlessedMan

So then how would I communicate with another real app? Like Taking info from your app and place it in specific places on say excel or quicken? I have seen almost zero examples of this and this helps but only a little.
(If this comment was disrespectful, please report it.)

 
8/24/2004 9:51:29 PMPaul Turcksin

Nice and instructive. Thanks for sharing. 5 from me.
(If this comment was disrespectful, please report it.)

 
8/25/2004 5:53:51 AMRde

This is an exceptional submission Peeter! Not only have you mastered DDE communication but you have demonstrated it in a clear and practical way. 5 * 5 orbs for this great work, keep it up. Happy coding, Rd.
(If this comment was disrespectful, please report it.)

 
8/25/2004 6:17:11 AMRde

One small note - use Unload Me instead of End in Prog 2. (also don't need to set Cancel = 0 in Case as this will let the sub finnish and other cleanup occur :)
(If this comment was disrespectful, please report it.)

 
9/3/2004 5:46:44 PMPeeter Puusemp jr.

Shabbir, it's my work, heh, normaljukk :D

BlessedMan, ok, I should have mentioned "communicating between vb apps"

Rde, that is very old code, I am much better in programming now, but I don't use VB any more (for a long time for now) and I am too lazy to fix the code. But thank you for good words :)

Thank you everydbody for those good words! :)
(If this comment was disrespectful, please report it.)

 
9/11/2004 10:09:12 AM

Good tutorial, instructive
*****
(If this comment was disrespectful, please report it.)

 

Add Your Feedback
Your feedback will be posted below and an email sent to the author. Please remember that the author was kind enough to share this with you, so any criticisms must be stated politely, or they will be deleted. (For feedback not related to this particular code, please click here instead.)
 

To post feedback, first please login.