why do I get error "Error using actxserver (line 90) Server creation failed. Invalid ProgID 'TWS.TwsCtrl.1'. Error in ibtws"

I'm using Trading toolbox and real account in IB. Command I'm using is "ib = ibtws('',7496);"
>> ib = ibtws('',7496);
Error using actxserver (line 90)
Server creation failed. Invalid ProgID 'TWS.TwsCtrl.1'.
Error in ibtws
I have enabled active x in IB API. And I'm using Matlab and IB on a same machine.
thanks for your help in advance.
Laimis

 采纳的回答

6 个评论

>> ib = ibtws('',7496); Error using feval Server Creation Failed: The application has failed to start because its side-by-side configuration is incorrect. Please see the application event log or use the command-line sxstrace.exe tool for more detail.
Error in actxserver (line 86) h=feval(['COM.' convertedProgID], 'server', machinename, interface);
Error in ibtws
Thank you for your answer. But I still get an error.
The server executable is missing a dependency.
Note: one reason that you can end up missing a dependency is if you are trying to use a 32 bit DLL from a 64 bit program. Everything needs to match up -- 64 bit MATLAB needs a 64 bit ActiveX control which needs 64 bit DLLs.
do you have any suggestions to solve this problem?
thank you in advance. Laimis

请先登录,再进行评论。

更多回答(0 个)

类别

在 帮助中心 和 File Exchange 中查找有关 Use COM Objects in MATLAB 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by