ActiveX compatibility problems in Matlab GUIDE application

3 visualizzazioni (ultimi 30 giorni)
Hi.
I have an ActiveX compatibility problem with a program created using the Matlab GUIDE application.
This ActiveX is a 32bit based program.
Since it was a program made at the time when Matlab was a 32bit-based program, there was no program compatibility problem in the past.
But as Matlab upgrade to 64 bit, we have the problem of 32bit based ActiveX is not working in 64bit based on Matlab.
I registered the ActiveX on 64bit by using the register function in windows, but I could not find the corresponding ActiveX in the ActiveX list recognized on Matlab.
In conclusion, I wonder if there is no way to force 32-bit based ActiveX to 64bit based Matlab program without creating new ActiveX.
I would appreciate it if your answer could be of little help.
Thank you.

Risposta accettata

Guillaume
Guillaume il 19 Lug 2019
Since you want to use your activex program in GUIDE, I assume it is an activeX control. If so, it is impossible to use a 32-bit control in a 64-bit application. Note that it is not a restriction of matlab, but one of Windows and there's no workaround. You would have to recompile the control as a 64-bit dll.
If, however, your activex program is a COM server (which you launch with actxserver), then depending on how it's designed it could be used in a 64-bit application. For that, it would have to have been designed as an out-of-process server. In which case, it works right out of the box. If it's been designed as an in-process server, then we're back to that's not possible. Windows does not allow the loading of 32-bit code within a 64-bit process.

Più risposte (0)

Community Treasure Hunt

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

Start Hunting!

Translated by