access to 2022b version COM server
显示 更早的评论
Do I understand correctly that now it is impossible to establish external applications interaction through a COM server with version 2022b?

9 个评论
Walter Roberson
2023-3-7
Andrey
2023-3-7
Walter Roberson
2023-3-7
Okay, and what difficulty are you observing when you try to make use of the MATLAB automation facilities?
Andrey
2023-3-7
Walter Roberson
2023-3-7
Did you just happen to comserver() [or the equivalent MATLAB command line options] to register R2021a afterwards? You can only register one version at a time.
Walter Roberson
2023-3-7
Looking at https://learn.microsoft.com/en-us/windows/win32/com/com-registry-keys it looks to me as if the VersionIndependentProgID would probably be the one consulted, and it would give a CLSID https://learn.microsoft.com/en-us/windows/win32/com/clsid-key-hklm that would have more details. If so then it would seem to make sense to check the VersionIndependentProgID in the registry to be sure that it points to the expected location.
Andrey
2023-3-8
Walter Roberson
2023-3-8
I would suggest rerunning the registration step. If you look at the keys you can see that r2022b (the one you want) is registered for win32 but the version you are getting is listed for win64.
Walter Roberson
2023-3-8
See also https://www.mathworks.com/matlabcentral/fileexchange/51165-matlab-file-association-shortcut-fix
回答(0 个)
类别
在 帮助中心 和 File Exchange 中查找有关 Startup and Shutdown 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!