Register Servers
Before using COM objects, you must register their servers. Most are registered by default. However, if you get a new.ocx
,.dll
, or other object file for the server, you must register the file manually in the Windows®registry.
Use the Windowsregsvr32
command to register your file. From the Windows prompt, use thecd
function to go to the folder containing the object file. If your object file is an.ocx
file, type:
regsvr32filename.ocx
If you encounter problems with this procedure, consult a Windows manual or contact your local system administrator.
Access COM Controls Created with .NET
If you create a COM control usingMicrosoft®.NET Framework4, use the DOSregasm
command with the/codebase
option to register your file.
Verify Registration
To verify that a server is registered, refer to your Microsoft product documentation for information about usingMicrosoft Visual Studio®or the Microsoft Registry Editor programs.