How to get IMLApp for COM automation server in C++

2 visualizaciones (últimos 30 días)
Peter Pebler
Peter Pebler el 1 de Sept. de 2017
Respondida: Amit Doshi el 8 de Sept. de 2017
The mlapp.tlb type library indicates that the MLApp coclass implements IMLApp. However, trying to obtain this interface fails:
CoCreateInstance(CLSID_MLApp, NULL, CLSCTX_LOCAL_SERVER, IID_IMLApp, (void **)&mlapp)
Creating using IUnknown or DIMLApp works, but then QueryInterface to get IMLApp fails. Using the dispatch interface from C++ is very annoying. Why is the IMLApp interface not available?

Respuestas (1)

Amit Doshi
Amit Doshi el 8 de Sept. de 2017
Hello Peter,
Thank you for your feedback. I have created an enhancement request for this feature based on your feedback. The development team may consider this for a future MATLAB release.

Categorías

Más información sobre Use COM Objects in MATLAB en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by