Solved

Execute DDE commands from client side script?

Posted on 2006-11-22
4
619 Views
Last Modified: 2013-11-19
I need to execute DDE commands from the client side of an asp application (I know, it is not asp anymore, but since VScript is almost the same ...).

How can I send these commands? Is using an ActiveX my only solution (i never did one and I ama tryng to avoid it) ?

This is how the DDE commands are supposed to be run from VB or VBA:

Sub DialAgentPhonePlus(PhoneNum$)
    Dim Chanl As Long
    On Error Resume Next ' Set up error handling.
    Chanl = DDEInitiate("AGNTPLUS", "SYSTEM") 'Establish link.
    If Err Then Exit Sub ' If error, exit.
    ' Dial the Phone Number
    DDEExecute Chanl, "DIAL," & PhoneNum
    ' Terminate DDE link.
    DDETerminate Chanl
End Sub
0
Comment
Question by:ourman1974
  • 2
  • 2
4 Comments
 
LVL 58

Expert Comment

by:amit_g
ID: 18001245
VBScript doesn't support DDE and AFAIK there is no built in object that would let you do so.
0
 

Author Comment

by:ourman1974
ID: 18004094
So, is there any other way to have the client side communicate with a DDE capable application installed on the user's PC?
The users will be company employee's so we can have them download / install any needed files.
Would an ActiveX made in VB6 get the work done? ... I never did an ActiveX before and I have no clue of how should I do it.
0
 
LVL 58

Accepted Solution

by:
amit_g earned 250 total points
ID: 18004203
ActiveX would work but if this is only for company emplyee where you can install things, write a very simple COM dll in any languages (VB would do) and let that communicate with that DDE enabled application. Also you might want to explore if that application exposes COM interface because VBScript can then use those interfaces directly.
0
 

Author Comment

by:ourman1974
ID: 18005758
Thank you for your help!
0

Featured Post

What is SQL Server and how does it work?

The purpose of this paper is to provide you background on SQL Server. It’s your self-study guide for learning fundamentals. It includes both the history of SQL and its technical basics. Concepts and definitions will form the solid foundation of your future DBA expertise.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Using YubiKey with REST API application 2 117
Need help to rewrite script 3 80
Query not working correctly? (or how i want it to... 6 51
Help with query 3 26
Most of the sites are being standardized with W3C Web Standards. W3C provides lot of web standard services to the web. They have the web specification, process and documentation for all the web standards. You can apply HTML, CSS and Accessibility st…
Shoutout to Emily Plummer (http://www.experts-exchange.com/members/eplummer26.html) for giving me this article! She did most of it, I just finished it up and posted it for her :)    Introduction In a previous article (http://www.experts-exchang…
Viewers will learn about arithmetic and Boolean expressions in Java and the logical operators used to create Boolean expressions. We will cover the symbols used for arithmetic expressions and define each logical operator and how to use them in Boole…
HTML5 has deprecated a few of the older ways of showing media as well as offering up a new way to create games and animations. Audio, video, and canvas are just a few of the adjustments made between XHTML and HTML5. As we learned in our last micr…

803 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