Why do I get "Dispatch : Error loading type library/DLL." when using MATLAB's ActiveX interface?
Show older comments
Why do I get "Dispatch : Error loading type library/DLL." when using MATLAB's ActiveX interface?
hacc = actxserver('Access.Application')
hacc =
activex object: 1-by-1
hopen = invoke(hacc,'opencurrentdatabase',[pathname,filename])
hopen =
-1
set(hacc,'Visible','0')
ans =
activex object: 1-by-1
hWksp = get(hacc.DBEngine,'Workspaces')
The last line of code produces the following error:
??? Dispatch : Error loading type library/DLL.
Error in ==> P:\Program\matlab61\toolbox\matlab\winfun\@activex\private\actxcli.dll
Error in ==> P:\Program\matlab61\toolbox\matlab\winfun\@activex\get.m
On line 15 ==> varargout{1} = actxcli('get', varargin{1}.Handle,varargin{2:end});
Error in ==> P:\Program\matlab61\toolbox\matlab\winfun\@activex\subsref.m
On line 24 ==> B = get(A,S(idx).subs);
Accepted Answer
More Answers (0)
Categories
Find more on ActiveX in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!