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#
  4. Register dll onto the OS

Register dll onto the OS

Scheduled Pinned Locked Moved C#
csharpc++questionlounge
2 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.
  • S Offline
    S Offline
    scchan1984
    wrote on last edited by
    #1

    Hi, I created a DLL by VC++ and want to register and install it onto WinXP. I would like to know what choices are available for achieving it ? 1. Can I get it done by programming with C# ? If yes, how ? 2. Can I get it done by .msi or .cab ? If yes, how ? And I want to know that the general practice for creating the CLSID for the dll for deploying a software dll. Is the clsID generated at the developer machine ? or generated at the target machine ? Thanks

    M 1 Reply Last reply
    0
    • S scchan1984

      Hi, I created a DLL by VC++ and want to register and install it onto WinXP. I would like to know what choices are available for achieving it ? 1. Can I get it done by programming with C# ? If yes, how ? 2. Can I get it done by .msi or .cab ? If yes, how ? And I want to know that the general practice for creating the CLSID for the dll for deploying a software dll. Is the clsID generated at the developer machine ? or generated at the target machine ? Thanks

      M Offline
      M Offline
      mav northwind
      wrote on last edited by
      #2

      Hi! If you mean you want to register a COM object then the easiest way is to call DllRegisterServer in the DLL. This can be achieved by calling "regsvr32 TheDll.dll" (using the Process class, for example). Or, if you want to include the COM dll in a setup, you usually can set the "SelfRegister" flag for the dll to true. In this case, windows installer calls DllRegisterServer in the dll during install. Regards, mav

      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