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. Problems registering DLL

Problems registering DLL

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

    I'm writing a COM Application using ATL. Up until now, I haven't had a problem with building the DLL. I was debugging my application and made a minor change to solve a problem. But I couldn't register my DLL. I undid my change but I still get the following error: Linking... Creating library Debug/MAPConnector.lib and object Debug/MAPConnector.exp Performing registration RegSvr32: LoadLibrary(".\Debug\MAPConnector.dll") failed. GetLastError returns 0x000000c1. MAPConnector.dll - 0 error(s), 0 warning(s) Could someone tell me what the error message means and how to solve it? I'll appreciate any help I can get.

    C B 2 Replies Last reply
    0
    • L Lost User

      I'm writing a COM Application using ATL. Up until now, I haven't had a problem with building the DLL. I was debugging my application and made a minor change to solve a problem. But I couldn't register my DLL. I undid my change but I still get the following error: Linking... Creating library Debug/MAPConnector.lib and object Debug/MAPConnector.exp Performing registration RegSvr32: LoadLibrary(".\Debug\MAPConnector.dll") failed. GetLastError returns 0x000000c1. MAPConnector.dll - 0 error(s), 0 warning(s) Could someone tell me what the error message means and how to solve it? I'll appreciate any help I can get.

      C Offline
      C Offline
      Chris Losinger
      wrote on last edited by
      #2

      0x000000c1 = "%1 is not a valid Windows NT application." try Tools / Error Lookup in VC. -c

      1 Reply Last reply
      0
      • L Lost User

        I'm writing a COM Application using ATL. Up until now, I haven't had a problem with building the DLL. I was debugging my application and made a minor change to solve a problem. But I couldn't register my DLL. I undid my change but I still get the following error: Linking... Creating library Debug/MAPConnector.lib and object Debug/MAPConnector.exp Performing registration RegSvr32: LoadLibrary(".\Debug\MAPConnector.dll") failed. GetLastError returns 0x000000c1. MAPConnector.dll - 0 error(s), 0 warning(s) Could someone tell me what the error message means and how to solve it? I'll appreciate any help I can get.

        B Offline
        B Offline
        Blake Miller
        wrote on last edited by
        #3

        -- RegSvr32: LoadLibrary(".\Debug\MAPConnector.dll") failed. ".\Debug\MAPConnector.dll" is a relative path name. Maybe some other DLL used by your application is not in the path at the time RegSvr32 is being executed. Or else the current directory is not in the correct location relative to your path for RegSvr32 to find your DLL to load it to register it at the time you are doing the build. I seem to recall editing the project build settings and using a variable that represent the project directory, instead of an abolute relative path to the DLL. for exmaple "$(ProjDir)\Debug\MAPConnector.dll"

        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