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. GetObject() failed

GetObject() failed

Scheduled Pinned Locked Moved COM
comquestionvisual-studiosysadmin
5 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.
  • L Offline
    L Offline
    liyang yu
    wrote on last edited by
    #1

    I am developing a simple local COM server, after I finished building this server(compiled, ran), then I used the OLE/COM object viewer to check it (I am using VC6.00, and this OLE/COM object viewer is a tool provided in the IDE of VC6.0), I opened up the "All Objects", I can see the one that is inside my newly created local COM server, but when I clicked the "+" sign to open it more up, it says the following: GetObject() failed, The system cannot find the path speicifed, $80070003 Anyone knows what is this and what is reason?? :confused: thanks!

    J 1 Reply Last reply
    0
    • L liyang yu

      I am developing a simple local COM server, after I finished building this server(compiled, ran), then I used the OLE/COM object viewer to check it (I am using VC6.00, and this OLE/COM object viewer is a tool provided in the IDE of VC6.0), I opened up the "All Objects", I can see the one that is inside my newly created local COM server, but when I clicked the "+" sign to open it more up, it says the following: GetObject() failed, The system cannot find the path speicifed, $80070003 Anyone knows what is this and what is reason?? :confused: thanks!

      J Offline
      J Offline
      Jorgen Sigvardsson
      wrote on last edited by
      #2

      Did you remove the DLL file after it was registered? Take a look at the registry key HKEY_CLASSES_ROOT\CLSID\{your class' GUID}\InprocServer32 (assuming it's a DLL server). The default value of that key should be the path to your DLL. If it isn't, bingo, there's your problem. If the value is correct, then I can't really tell. -- Weiter, weiter, ins verderben. Wir müssen leben bis wir sterben.

      L 1 Reply Last reply
      0
      • J Jorgen Sigvardsson

        Did you remove the DLL file after it was registered? Take a look at the registry key HKEY_CLASSES_ROOT\CLSID\{your class' GUID}\InprocServer32 (assuming it's a DLL server). The default value of that key should be the path to your DLL. If it isn't, bingo, there's your problem. If the value is correct, then I can't really tell. -- Weiter, weiter, ins verderben. Wir müssen leben bis wir sterben.

        L Offline
        L Offline
        liyang yu
        wrote on last edited by
        #3

        Thanks! In fact, I am using a EXE (local COM server) server, and the registry key looks like following:

        HKEY_CLASSES_ROOT\CLSID\{myClassGUID}\LocalServer32 = somePath

        so this part should be fine... I appreciate your input very much though. liyang

        J 1 Reply Last reply
        0
        • L liyang yu

          Thanks! In fact, I am using a EXE (local COM server) server, and the registry key looks like following:

          HKEY_CLASSES_ROOT\CLSID\{myClassGUID}\LocalServer32 = somePath

          so this part should be fine... I appreciate your input very much though. liyang

          J Offline
          J Offline
          Jorgen Sigvardsson
          wrote on last edited by
          #4

          Could it be that your COM server depends on a DLL (probably home made) which OLE/COM Viewer can't find? I can't remember if that fault produces the "file not found" error or "device not ready". In any case, the error code given is not intuitive. :~ -- Weiter, weiter, ins verderben. Wir müssen leben bis wir sterben.

          L 1 Reply Last reply
          0
          • J Jorgen Sigvardsson

            Could it be that your COM server depends on a DLL (probably home made) which OLE/COM Viewer can't find? I can't remember if that fault produces the "file not found" error or "device not ready". In any case, the error code given is not intuitive. :~ -- Weiter, weiter, ins verderben. Wir müssen leben bis wir sterben.

            L Offline
            L Offline
            liyang yu
            wrote on last edited by
            #5

            not really. this is a very simple example, in fact it is a small lab example from this "Developer's Workshop to COM/ATL 3.0" book, and the author's own lab code also produces this problem. sigh..., and I cannot find his contact info.

            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