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. C#
  4. COM Scriptlet Access from CSharp

COM Scriptlet Access from CSharp

Scheduled Pinned Locked Moved C#
csharpphpdatabasecomtutorial
4 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.
  • D Offline
    D Offline
    Davy Mitchell
    wrote on last edited by
    #1

    Hi All, Does anyone have a good example of using a COM Scriptlet (mine is VBS) from a CSharp application? Should it would like a normal COM control? Regards, Davy
    My Personal Blog - Homepage.
    Scottish News - Angus Blog, Perth Blog and Dundee Blog

    H 1 Reply Last reply
    0
    • D Davy Mitchell

      Hi All, Does anyone have a good example of using a COM Scriptlet (mine is VBS) from a CSharp application? Should it would like a normal COM control? Regards, Davy
      My Personal Blog - Homepage.
      Scottish News - Angus Blog, Perth Blog and Dundee Blog

      H Offline
      H Offline
      Heath Stewart
      wrote on last edited by
      #2

      You should be able to. Make sure you register them first using regsvr32.exe. You'll have to create your own interop classes, though, since there wouldn't be any typelib on which to use tlbimp.exe. The WSC host (script.dll) takes care of all the details so the CCW shouldn't care how the COM control was instantiated or where it came from (one of the major development goals of COM).

      Microsoft MVP, Visual C# My Articles

      D 2 Replies Last reply
      0
      • H Heath Stewart

        You should be able to. Make sure you register them first using regsvr32.exe. You'll have to create your own interop classes, though, since there wouldn't be any typelib on which to use tlbimp.exe. The WSC host (script.dll) takes care of all the details so the CCW shouldn't care how the COM control was instantiated or where it came from (one of the major development goals of COM).

        Microsoft MVP, Visual C# My Articles

        D Offline
        D Offline
        Davy Mitchell
        wrote on last edited by
        #3

        Thanks Heath - I'll give it a go tonight :-D Davy
        My Personal Blog - Homepage.
        Scottish News - Angus Blog, Perth Blog and Dundee Blog

        1 Reply Last reply
        0
        • H Heath Stewart

          You should be able to. Make sure you register them first using regsvr32.exe. You'll have to create your own interop classes, though, since there wouldn't be any typelib on which to use tlbimp.exe. The WSC host (script.dll) takes care of all the details so the CCW shouldn't care how the COM control was instantiated or where it came from (one of the major development goals of COM).

          Microsoft MVP, Visual C# My Articles

          D Offline
          D Offline
          Davy Mitchell
          wrote on last edited by
          #4

          I have since found out if the file has the extension .wsc, you can right-click and generate a typelib file :-D Davy
          My Personal Blog - Homepage.
          Scottish News - Angus Blog, Perth Blog and Dundee Blog

          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