Wednesday, September 20, 2006

Register / Unregister OLE Controls


Problem: How to register / unregister OLE Controls?

Solution: Use Regsvr32 tool (Regsvr32.exe) to register / unregister object linking and embedding (OLE) controls such as dynamic-link library ( DLL ) or ActiveX Controls (OCX) files that are self-registerable.
Steps:
1. Go to the command prompt Start --> Run --> cmd (change to the directory where the file is present)
2. To register the file type in: regsvr32 file.(dll/ax), To unregister type: regsvr32 -u file.(dll/ax)
3. Some popup message should display saying that the file was successfully registered or unregistered

Extra info:
Regsvr32 [/u] [/n] [/i[:cmdline]] dllname

/u - Unregister server
/i - Call dll install passing it an optional [cmdline]; when used with /u calls dll uninstall
/n - do not call DllRegisterServer; this option must be used with /i


3 comments:

SmileCostsNothing said...

Sir,
Using defined method i tried to register a dll file,after running the command it shows the popup message that dll was loaded ,but the DllRegisterServer Entry Point not found.DllRegisterServer may not be exported,or a corrupt version of dll may be in memory.
Please help in finding the solution to this error.
Thanks

Aravind said...

Can you check to see if your dll is fine and not corrupt? Also, I think the DllRegisterServer function is exported by COM dlls only. If so, you might just have a standard dll. I shall update you if I find something on this. Hope this helps.

SmileCostsNothing said...

Thanks for ur timely advise.

Back to Top


 

Labels