IB TWS API sample code error

Discussion in 'Automated Trading' started by nomoremondays, Apr 5, 2014.

  1. Hi guys,

    I hope I am posting in the right section.

    I am trying to run the sample programs included in TWS API. The c++ client2.exe sample gives the following error.

    "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"

    When I go in the event log I get the following:

    Activation context generation failed for "C:\TWS API\samples\TestCpp\Release\client2.exe". Dependent Assembly Microsoft.VC80.MFC,processorArchitecture="x86",publicKeyToken="1fc8b3b9a1e18e3b",type="win32",version="8.0.50608.0" could not be found. Please use sxstrace.exe for detailed diagnosis.

    All the other samples also give similar errors. I am using a windows 8 machine. The API version is the latest (9.70 )
    Anybody run into this and any ideas on what causes this and the fix?

    Thanks
     
  2. Bob111

    Bob111

    There is a very active yahoo group called TWSAPI. you might get a better/faster answers over there.
     
  3. Thanks Bob. I'll post there as well.
     
  4. vicirek

    vicirek

    your machine is missing C++ MFC redistributables. It comes for example with Visual Studio Professional.