Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Execute DDE commands from client side script?

Posted on 2006-11-22
4
Medium Priority
?
647 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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 1000 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

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

Question has a verified solution.

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

This demonstration started out as a follow up to some recently posted questions on the subject of logging in: http://www.experts-exchange.com/Programming/Languages/Scripting/JavaScript/Q_28634665.html and http://www.experts-exchange.com/Programming/…
Introduction Since I wrote the original article about Handling Date and Time in PHP and MySQL several years ago, it seemed like now was a good time to update it for object-oriented PHP.  This article does that, replacing as much as possible the pr…
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…
The viewer will learn how to dynamically set the form action using jQuery.

597 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