MATLAB: Do I receive an error when trying to register a MATLAB COM Builder-generated component

buildercomcomcatcomcat.dlldllregisterserverfailedMATLAB Builder for COMregister

Why do I receive the error "Error: DLLRegisterServer in myobject_1_0.dll" when trying to register a MATLAB COM Builder-generated component?

Best Answer

There are two possible causes for this error.
First, in order to register a component, you will need to have administrative privileges on your machine. This is necessary because you will need to have permissions to modify your registry.
Second, there is a known bug in a Microsoft DLL (comcat.dll) that MWREGSVR uses to register the component. This file should be located in your C:\WINNT\System32 directory. This problem is known to occur on Windows NT with the COMCAT.DLL version 4.0. You will need to get the version 4.71 of that file as documented at the Microsoft web site below: