Why do I receive the error message "Server Creation Failed: Class not registered" when trying to communicate with a COM server using MATLAB?
6 次查看(过去 30 天)
显示 更早的评论
MathWorks Support Team
2021-12-27
回答: MathWorks Support Team
2021-12-27
When trying to communicate with a third party application using the COM server in MATLAB, I am receiving the following error message,
Server Creation Failed: Class not registered
Why do I receive the error message "Server Creation Failed: Class not registered" when trying to communicate with a COM server using MATLAB?
采纳的回答
MathWorks Support Team
2021-12-27
This issue can have two causes:
1.) The DLL that is loaded into MATLAB is a 32-bit DLL but it is used a MATLAB 64-bit version, see the following MATLAB Answers thread for more information,
In such a case the resolution of the issue would involve installing and using a 32-bit version of MATLAB.
2.) The DLL that is loaded in MATLAB through the COM interface does not have the particular class registered.
If the third-party application is run as an out-of-process ActiveX server, then the issue most likely lies in point 2.). To resolve this issue, the developer of the third-party program needs to register the class in the generated DLL, before one can access it through MATLAB via the COM interface.
0 个评论
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Use COM Objects in MATLAB 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!