Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. COM
  4. vbscript calling ActiveX(MFC) control method fail

vbscript calling ActiveX(MFC) control method fail

Scheduled Pinned Locked Moved COM
helpc++htmlcomquestion
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • T Offline
    T Offline
    theshuttle
    wrote on last edited by
    #1

    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!:)

    M 1 Reply Last reply
    0
    • T theshuttle

      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!:)

      M Offline
      M Offline
      MMansonFan25
      wrote on last edited by
      #2

      I was just curious: This is for a scripting system like Windows Based Script Host? What kind of errors, if any, are you getting?

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups