Skip navigation

Dynamic Link Library (DLL) or OLE Control eXtension (OCX) file is a shared library concept in Microsoft Windows operating system.

These libraries are set of functions that shared and called by various applications and then utilized by those those application.

Software vendors include their own DLL/OCX file upon installing their software and it is self-registering.

But this time we have to manually registering an DLL/OCX file.

For example we have an created are own DLL/OCX file that have different functions.

We can do this via “RegSvr32” tool.


regsvr32 [/u] [/s] [/n] [/i[:cmdline]] dllname


/u – Unregister server
/s – Silent; display no message
/i – Call DllInstall passing it an optional [cmdline];
when used with /u calls dll uninstall
/n – do not call DllRegisterServer;
this option must be used with /i
dllname – the name of the dll, including the path


regsvr32 c:\winnt\system32\<sample_dll>

Now, how do we execute this command?

Open an Command Prompt and enter the command.


Go to START > Run and enter the command.


Press Window+R to open and run window, then enter the command.


Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s

%d bloggers like this: