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
Walter Roberson 2023년 3월 7일
Did you comserver ?
Andrey
Andrey 2023년 3월 7일
of course
>> comserver('query')
User: 'C:\Program Files\MATLAB\R2022b\bin\win64\matlab.exe'
Administrator: 'C:\Program Files\MATLAB\R2022b\bin\win64\MATLAB.exe'
Walter Roberson
Walter Roberson 2023년 3월 7일
Okay, and what difficulty are you observing when you try to make use of the MATLAB automation facilities?
Andrey
Andrey 2023년 3월 7일
When try to call some function, version 2021a is always starts.
Walter Roberson
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
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
Andrey 2023년 3월 8일
I checked all the links - they all point to the same type library (first picture in my question) .
How correct is it to edit this section directly in the registry?
Walter Roberson
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
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에 대해 자세히 알아보기

제품

릴리스

R2022b

태그

질문:

2023년 3월 6일

댓글:

2023년 3월 8일

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by