Why does the ACTXSERVER function fail on the valid COM server TLI.TLIApplication?

Why does the ACTXSERVER function fail on the valid COM server TLI.TLIApplication?
I get the following error when I try to create an ActiveX automation server in MATLAB:
h = actxserver('TLI.TLIApplication')
??? TLI.TLIApplication : No such interface supported
Error in ==> F:\MATLAB6p1\toolbox\matlab\winfun\@activex\private\actxcli.dll
Error in ==> F:\MATLAB6p1\toolbox\matlab\winfun\@activex\activex.m
On line 17 ==> h.Handle=actxcli(varargin{:});
Error in ==> F:\MATLAB6p1\toolbox\matlab\winfun\actxserver.m
On line 15 ==> h=activex('server',varargin{:});

 Accepted Answer

This bug has been fixed for Release 14 (R14). For previous releases, please read below for any possible workarounds:
This issue has been forwarded to our development staff for further investigation.
A workaround that one of our customers reported is to create an activeX server that has a method that returns TLI.TLIApplication. The following code snippet illustrates doing this with Visual Basic:
In Visual Basic:
*****************
Public Function TLIApp() As Object
Set TLIApp = CreateObject("TLI.TLIApplication")
End Function
Then, in Matlab:
******************
h = actxserver('MLHelperObjects.TLIAppObject')
h =
activex object: 1-by-1
hh = invoke(h,'TLIApp')
hh =
activex object: 1-by-1
PLEASE NOTE The above workaround has not been fully qualified by MathWorks and, therefore, we do not officially support it.

More Answers (0)

Categories

Products

Community Treasure Hunt

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

Start Hunting!