Solved

Execute DDE commands from client side script?

Posted on 2006-11-22
4
627 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 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

Why Off-Site Backups Are The Only Way To Go

You are probably backing up your data—but how and where? Ransomware is on the rise and there are variants that specifically target backups. Read on to discover why off-site is the way to go.

Question has a verified solution.

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

Preface In the first article: A Better Website Login System (http://www.experts-exchange.com/A_2902.html) I introduced the EE Collaborative Login System and its intended purpose. In this article I will discuss some of the design consideratio…
What is Node.js? Node.js is a server side scripting language much like PHP or ASP but is used to implement the complete package of HTTP webserver and application framework. The difference is that Node.js’s execution engine is asynchronous and event…
The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…
Video by: Mark
This lesson goes over how to construct ordered and unordered lists and how to create hyperlinks.

729 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