vbscript calling ActiveX(MFC) control method fail
-
I create a simple ActiveX control using MFC wizzard and add a simple method "testdlg" to show a test messagebox. Insert this control into a html using tags, then using vbscript "obj.testdlg" to call the method, it does work and show the test messagebox. But when I using these vbscript code without tags " Dim obj Set obj = CreateObject("progid") obj.testdlg " it doesn't work. What's more, I have tried these code in VB, it can also work. I have to use the ActiveX control in a scripting environment which only supports vbscript (exclude html). So can anyone handle this problem? I really appreciate for your help!:)
-
I create a simple ActiveX control using MFC wizzard and add a simple method "testdlg" to show a test messagebox. Insert this control into a html using tags, then using vbscript "obj.testdlg" to call the method, it does work and show the test messagebox. But when I using these vbscript code without tags " Dim obj Set obj = CreateObject("progid") obj.testdlg " it doesn't work. What's more, I have tried these code in VB, it can also work. I have to use the ActiveX control in a scripting environment which only supports vbscript (exclude html). So can anyone handle this problem? I really appreciate for your help!:)
I was just curious: This is for a scripting system like Windows Based Script Host? What kind of errors, if any, are you getting?