Solved

Execute DDE commands from client side script?

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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Styling your websites can become very complex. Here I'll show how SASS can help you better organize, maintain and reuse your CSS code.
JavaScript has plenty of pieces of code people often just copy/paste from somewhere but never quite fully understand. Self-Executing functions are just one good example that I'll try to demystify here.
Viewers will learn about if statements in Java and their use The if statement: The condition required to create an if statement: Variations of if statements: An example using if statements:
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.

744 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

11 Experts available now in Live!

Get 1:1 Help Now