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
Dependency Walker is my only suggestion.

댓글을 달려면 로그인하십시오.

추가 답변 (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