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. Cannot register COM server

Cannot register COM server

Scheduled Pinned Locked Moved COM
comsysadminhelp
3 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.
  • A Offline
    A Offline
    Andy Hunter
    wrote on last edited by
    #1

    I have created a com server in a dll and when I attempt to register the server using regsvr32 I recieve an error message stating that the module could not be found. I was wondering if anyone new of the cause for that (I have checked the path and it is correct). Thanks in advance.

    V 1 Reply Last reply
    0
    • A Andy Hunter

      I have created a com server in a dll and when I attempt to register the server using regsvr32 I recieve an error message stating that the module could not be found. I was wondering if anyone new of the cause for that (I have checked the path and it is correct). Thanks in advance.

      V Offline
      V Offline
      vikramlinux
      wrote on last edited by
      #2

      Well check following things, 1) Try to load your DLL like ordinary DLL . If loadlibrary does not work out then your DLL is in incorrect . 2)Now next try will be check out wether your DLL is having all basic COM functions needed (exports). Look for MSDN if u dont know the basic COM exports

      A 1 Reply Last reply
      0
      • V vikramlinux

        Well check following things, 1) Try to load your DLL like ordinary DLL . If loadlibrary does not work out then your DLL is in incorrect . 2)Now next try will be check out wether your DLL is having all basic COM functions needed (exports). Look for MSDN if u dont know the basic COM exports

        A Offline
        A Offline
        Andy Hunter
        wrote on last edited by
        #3

        Thanks for the information. I got past the cannot find module error but not I am receiving a cannot find DllRegisterServer entry point error. I have tried removing the macros and explicitly defining the function types. I forward defined them like this: extern "C" __declspec(dllexport) HRESULT STDAPICALLTYPE DllRegisterServer(); extern "C" __declspec(dllexport) HRESULT STDAPICALLTYPE DllUnregisterServer(); The function bodies look like this: extern "C" __declspec(dllexport) HRESULT STDAPICALLTYPE DllRegisterServer() { return RegisterServer(g_hModule, CLSID_Component1, g_szFriendlyName, g_szVerIndProgID, g_szProgID); } //server unregister extern "C" __declspec(dllexport) HRESULT STDAPICALLTYPE DllUnregisterServer() { return UnregisterServer(CLSID_Component1, g_szVerIndProgID, g_szProgID); } Again thanks for the help.

        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