Need 16bit app to talk to 32bit app -DDE or OLE?

I have a 16bit VB4 app that needs to talk (using mostly string messages) to a 32bit C++ app. Windows messaging is limited (i believe?) and I am told DDE is very touchy. I have been suggested OLE but how? I don't know. I just need to get short strings between apps very quickly. What do I do?
Who is Participating?

Improve company productivity with a Business Account.Sign Up

cymbolicConnect With a Mentor Commented:
DDE is not touchy, and extremely easy to implement in VB.  It's fast and reliable, but of course needs both applications to be running before it works!  I've used it without fail to communicate and interoperate older mail systems that were not MAPI compliant running in W95, and it's really the interface of choice for 16 bit apps in Windows.  Don't believe the FUD factor comments used to migrate the development lemmings into the waiting arms of Microsoft's 32bit world of profit.

For instance, the following was all I needed after setting the properties on a textbox control to kick off an email message under GroupWise using DDE:

    'Create GroupWise SendMail String, as documented
    ' in GroupWise online help.
    sql$ = "SendMail(" & xx$ & "DTaylor" & xx$ & ";" & xx$ & FrmProgress.Caption & xx$ & ";" & xx$ & sql$ & xx$ & ")"
    Text1.LinkMode = 0
    'GroupWise server: Ofwin GroupWise Topic: Command
    Text1.LinkTopic = "Ofwin|Command"    ' Set link topic.
    On Error Resume Next
    Text1.LinkMode = vbLinkManual
    If Err <> 282 Then Text1.LinkExecute sql$ 'Send GroupWise SendMail Command

The only tricky part is digging out the specs for some other person's program to perform the DDE link.  This is usually a whole hell of a lot simpler than trying to pry hidden registry switches from proprietary MS apps, and since you are setting it up on both ends, there's no "hidden" tricks to be bartered from a third party bug producer on this one!
Are the apps on the same machine? Is data flowing in both directions, or is the VB4 app exclusively sending data?
rblackwellAuthor Commented:
Both apps are on the same machine and data (string & Integer) is going in both directions. They will be combined in the future but time does not permitt.
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.