Why am I not able to use 32-bit DLL COM Objects in 64-bit MATLAB?

16 ビュー (過去 30 日間)
MathWorks Support Team
MathWorks Support Team 2012 年 12 月 11 日
編集済み: MathWorks Support Team 2021 年 10 月 21 日
I can instantiate a 32-bit COM DLL-file as an In-Process (InProc) ActiveX Server in 32-bit MATLAB:
a = actxserver('MSOSOAP.HttpConnector30')
a =
COM.MSOSOAP_HttpConnector30
However, when I attempt the same in 64-bit MATLAB:
b = actxserver('MSOSOAP.HttpConnector30')
I receive the following error:
ERROR: ??? Server Creation Failed: Class not registered

採用された回答

MathWorks Support Team
MathWorks Support Team 2021 年 10 月 11 日
編集済み: MathWorks Support Team 2021 年 10 月 21 日
The documentation for MATLAB 7.6 (R2008a) has been updated to incorporate the relevant information. This information can be accessed under the section 'Instantiating a DLL component':
For previous product releases, read below for any possible workarounds:
Microsoft does not support loading 32-bit DLLs or In-Process (InProc) COM Servers into a 64-bit application, or vice-versa. For additional information, please refer to the following resource on MSDN:
This limitation does not apply to COM Automation servers that are EXE-files (e.g. Excel, 32-bit MATLAB etc.). These servers will work as expected.

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeUse COM Objects in MATLAB についてさらに検索

製品


リリース

R2006b

Community Treasure Hunt

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

Start Hunting!

Translated by