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. Need help to write a COM component which should be accessible from JScript!

Need help to write a COM component which should be accessible from JScript!

Scheduled Pinned Locked Moved COM
helpc++comsysadmintesting
3 Posts 3 Posters 3 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
    gopikomanduri
    wrote on last edited by
    #1

    Hi, Can I get any sample of how to write a COM component which should be accessible from JScript. Actually , I am able to write a normal COM (InProc) component and able to invoke from other c++ client. But while trying the same from JScript , unable to invoke it. I am getting error like automation server cannot create object etc. Thx, --Gopi

    C _ 2 Replies Last reply
    0
    • G gopikomanduri

      Hi, Can I get any sample of how to write a COM component which should be accessible from JScript. Actually , I am able to write a normal COM (InProc) component and able to invoke from other c++ client. But while trying the same from JScript , unable to invoke it. I am getting error like automation server cannot create object etc. Thx, --Gopi

      C Offline
      C Offline
      cariolihome
      wrote on last edited by
      #2

      COM-component must be inherited from IDispatch

      1 Reply Last reply
      0
      • G gopikomanduri

        Hi, Can I get any sample of how to write a COM component which should be accessible from JScript. Actually , I am able to write a normal COM (InProc) component and able to invoke from other c++ client. But while trying the same from JScript , unable to invoke it. I am getting error like automation server cannot create object etc. Thx, --Gopi

        _ Offline
        _ Offline
        _Superman_
        wrote on last edited by
        #3

        As mentioned by cariolihome only interface inherited from IDispatch can be access by scripting clients. Additionally, only the default interface marked in the IDL using the [default] attribute inside coclass can be accessed by scripting clients.

        «_Superman_» I love work. It gives me something to do between weekends.
        Microsoft MVP (Visual C++)

        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