DDE usage with VB6

Posted on 2006-06-02
Last Modified: 2008-02-01
Here is the situation: I have this customer that owns a huge junkyard in USA, and although he use topline computers and systems, there is some data that he receives in real time from somewhere else that still uses VERY early data format. Because that he needs to use an application called ProComm Plus from Symantec.

This application displays an ugly text screen for his salesperson, but now my customer need to extract some data from this screen and send to VB. Then VB will use this data to query a MSSQL database and send data back.

The problem is that the only kind of communication that ProComm uses to talk to external applications is DDE (that as far as I could see, was deprecated in VB.NET). I have found a cool tutorial for VB6, but unfortunatelly it just covers communication between two VB applications using form link.

I would like to know if anyone have some idea about how to catch a message sent from a non-VB application through a DDE channel, and how to send another message to this same channel.

ANY help or tip will be welcome.

Thanks to everybody in advance!
Question by:pamsauto
    LVL 10

    Accepted Solution

    LVL 17

    Expert Comment

    Why not scrap ProComm and collect the data from the external device directly from within VB.  I think that ProComm is just acting as a terminal emulator. What type  of device is the procom attached to., is it a serial RS232 device? If it is your problem is over, no need to use DDE.

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    How your wiki can always stay up-to-date

    Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
    - Increase transparency
    - Onboard new hires faster
    - Access from mobile/offline

    Introduction While answering a recent question about filtering a custom class collection, I realized that this could be accomplished with very little code by using the ScriptControl (SC) library.  This article will introduce you to the SC library a…
    You can of course define an array to hold data that is of a particular type like an array of Strings to hold customer names or an array of Doubles to hold customer sales, but what do you do if you want to coordinate that data? This article describes…
    Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
    This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

    737 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    23 Experts available now in Live!

    Get 1:1 Help Now