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 / C++ / MFC
  4. COM DLL ProgID is not created

COM DLL ProgID is not created

Scheduled Pinned Locked Moved C / C++ / MFC
com
3 Posts 3 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.
  • A Offline
    A Offline
    Ash_VCPP
    wrote on last edited by
    #1

    Hi All, i have created one com component type library, after registring it it is showing entry in CLSID but ProgID has not been created(seen in regedit),and i am unable to create instance for this object.i am trying two possible ways:- HRESULT hres1 = CLSIDFromProgID(OLESTR("ScriptObj.ScriptObj"), &clsid); and HRESULT hres = sobj.CreateInstance("{7B10869E-824C-4BB4-B344-73AC5AF9E1E}"); but failing in both the cases.

    Thanks A Ton Ash_VCPP walking over water is just knowing where the stones are.....

    U K 2 Replies Last reply
    0
    • A Ash_VCPP

      Hi All, i have created one com component type library, after registring it it is showing entry in CLSID but ProgID has not been created(seen in regedit),and i am unable to create instance for this object.i am trying two possible ways:- HRESULT hres1 = CLSIDFromProgID(OLESTR("ScriptObj.ScriptObj"), &clsid); and HRESULT hres = sobj.CreateInstance("{7B10869E-824C-4BB4-B344-73AC5AF9E1E}"); but failing in both the cases.

      Thanks A Ton Ash_VCPP walking over water is just knowing where the stones are.....

      U Offline
      U Offline
      User 3919723
      wrote on last edited by
      #2

      Maybe you need to check HRESULT to see what is wrong. However, have you called CoInitialize or CoInitializeEx first? And finally, you can write: HRESULT hres = sobj.CreateInstance(OLESTR("ScriptObj.ScriptObj"));

      1 Reply Last reply
      0
      • A Ash_VCPP

        Hi All, i have created one com component type library, after registring it it is showing entry in CLSID but ProgID has not been created(seen in regedit),and i am unable to create instance for this object.i am trying two possible ways:- HRESULT hres1 = CLSIDFromProgID(OLESTR("ScriptObj.ScriptObj"), &clsid); and HRESULT hres = sobj.CreateInstance("{7B10869E-824C-4BB4-B344-73AC5AF9E1E}"); but failing in both the cases.

        Thanks A Ton Ash_VCPP walking over water is just knowing where the stones are.....

        K Offline
        K Offline
        KarstenK
        wrote on last edited by
        #3

        your asking again the question and didnt listen to the advise you got http://www.codeproject.com/script/Forums/Messages.aspx?fmid=5955197[^] Why? :mad:

        Press F1 for help or google it. Greetings from Germany

        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