Thursday, February 12, 2009

How to Register DLLs in C#

The Regsvr32 tool is used to register or un-register DLL or OCX files.Usage:Regsvr32 [/u] [/s] [/n] [/i[:cmdline]] dll_name/u – un-register server/s – to run silently without display any message boxesdll_name – indicates the path and file name of the DLL to register. More than one DLL is allowed in this command.Example:regsvr32 C:\example.ocxregsvr32 /u C:\example.ocxSometimes we need to register DLLs programmatically, the codes below will show you how to invoke the regsvr32.exe and register a dll file in C#.using System.Diagnostics;…public...
 

Get paid for your opinions! Click on the banner above to join Planet Pulse. Its totally free to sign up, and you can earn UNLIMITED. Find out more by visiting PLANET PULSE.
Sign up for PayPal and start accepting credit card payments instantly. http://www.emailcashpro.com
July Code Blog Copyright © 2010 Blogger Template Designed by Bie Blogger Template