Click to See Complete Forum and Search --> : DDE in ASP (VBScript)
ANV
April 3rd, 1999, 08:57 AM
We need to find out whether or not it is possible to start a DDE object through VBScript (in an ASP file).
We have to contact a program that does NOT support COM, so we have to do this instead.
Does anyone know how to do this?
Lothar Haensler
April 6th, 1999, 09:22 AM
in an ASP you would use VBScript or JScript for executing program logic.
Both languages do not support DDE AFAIK. That makes sense, because DDE is based on Windows handles and messages. ASPs "applications" do not use that kind of stuff.
On the other hand, you could write a COM object in VB 5 or 6 and do the DDE conversation in that COM object and call that COM object form your ASP.
ANV
April 6th, 1999, 09:49 AM
Thanks.
We've already thought of that approach... making a COM object for the DDE functions and calling that from ASP.
Now comes the really stupid question. How do you go about calling the COM object from ASP and sending some parameters down?
We're using VBScript but can't seem to find out how to do it there. It's so easy from Visual Basic (and VBA) (using the CreateObject(ProgID)) but that function (and other similar ones) seem to be "missing" from VBScript.
By the way... the COM object we're using for tests is built in C++ (MS Visual Studio 6.0) with the ATL wizard.
What does AFAIK stand for?
Lothar Haensler
April 6th, 1999, 09:52 AM
AFAIK = as far as i know, one of those stupid acronyms.
use Server.CreateObject
in your ASP like in
Set myobj = Server.Createobject("YourServer.YourClass")
codeguru.com
Copyright Internet.com Inc., All Rights Reserved.