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. ATL / WTL / STL
  4. Use ATL COM DLL in VB Script which written in C++

Use ATL COM DLL in VB Script which written in C++

Scheduled Pinned Locked Moved ATL / WTL / STL
tutorialc++questionvisual-studiocom
4 Posts 2 Posters 11 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.
  • G Offline
    G Offline
    GTAVLover
    wrote on last edited by
    #1

    Hello, I am newbie to C++ and therefore I found the following example and working with it. A Beginner Tutorial for Writing Simple COM/ATL DLL For VS2012 I like to know how to use this example COM object in VB Script, I like to do it using CreateObject Method. If it currently doesn't support VB Script, how can I add VB Script support to this DLL? Thanks for your help.:thumbsup:

    L 1 Reply Last reply
    0
    • G GTAVLover

      Hello, I am newbie to C++ and therefore I found the following example and working with it. A Beginner Tutorial for Writing Simple COM/ATL DLL For VS2012 I like to know how to use this example COM object in VB Script, I like to do it using CreateObject Method. If it currently doesn't support VB Script, how can I add VB Script support to this DLL? Thanks for your help.:thumbsup:

      L Offline
      L Offline
      Lost User
      wrote on last edited by
      #2

      See Using COM Objects in Windows Script Host (COM)[^].

      G 1 Reply Last reply
      0
      • L Lost User

        See Using COM Objects in Windows Script Host (COM)[^].

        G Offline
        G Offline
        GTAVLover
        wrote on last edited by
        #3

        Thanks, I did it but I got "Could not locate automation class..." in VB Script, but using C# this works fine. I used it like

        Dim Test: Set Test = WScript.CreateObject("SimpleATLComLib.SimpleCom")

        Test.TotalMarks = 50

        because I don't know how to get automation class name to be used in VB Script from that DLL. Why this error occurs?

        L 1 Reply Last reply
        0
        • G GTAVLover

          Thanks, I did it but I got "Could not locate automation class..." in VB Script, but using C# this works fine. I used it like

          Dim Test: Set Test = WScript.CreateObject("SimpleATLComLib.SimpleCom")

          Test.TotalMarks = 50

          because I don't know how to get automation class name to be used in VB Script from that DLL. Why this error occurs?

          L Offline
          L Offline
          Lost User
          wrote on last edited by
          #4

          Sorry, no idea, I have not used VBScript in this way.

          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