10-25-2013 12:54 AM
Hello
I have to migrate the software of a test bench from an older pc to a newer one.
In the code there is also a part where Matlab is needed and therfore it is started as an ActiveX Object.
To start it you need the GUID (Globally Unique Identifier) of Matlab but as there is a newer version of matlab installed on the new pc it doesn't work.
Here is the Code :
HRESULT CVIFUNC MLApp_NewDIMLApp (const char *server, int supportMultithreading,
LCID locale, int reserved,
CAObjHandle *objectHandle)
{
HRESULT __result = S_OK;
GUID clsid = {0xA052DEB6, 0x24BF, 0x4425, 0xB4, 0xAE, 0xE8, 0xC5, 0x5D,
0x26, 0x45, 0x66};
__result = CA_CreateObjectByClassIdEx (&clsid, server, &IID_IDispatch,
supportMultithreading, locale,
reserved, objectHandle);
return __result;
}
I hope you can help me.
11-05-2013 12:29 AM - edited 11-05-2013 12:30 AM
Has anyone an idea ?
11-05-2013 07:13 AM
Have you tried using the ActiveX Controller Wizard (Tools|Create ActiveX Controller...) to create a new interface module for the version of MATLAB you have?