Solved

Execute DDE commands from client side script?

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

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Problem to Popup 2 86
If-Then-Else ASP problem 6 67
Filktering Alphabetically 8 30
asp classic find word in string and get its value 3 13
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…
It's sometimes a bit tricky to use date functions in Oracle BPEL. I'll explain quickly how you can add N days to the current date. In a BPEL process this can be useful, and you can adapt it to fit your needs. First of all, let's see how to add 1 …
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…
The viewer will the learn the benefit of plain text editors and code an HTML5 based template for use in further tutorials.

856 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