IB API Compile Issue.

Discussion in 'Automated Trading' started by walterjennings, Jun 4, 2007.

  1. Hey. I decided to finally bring my version of TWS and C++ API up to date today and am running into a error I cant seem to fix. When I compile my app it compiles and links correctly, but before it runs it gets an Application Error and doesnt start, this is before it gets to the first line of the app.

    It outputs

    LDR: LdrpWalkImportDescriptor() failed to probe C:\WINDOWS\system32\TwsSocketClient.dll for its manifest, ntstatus 0xc0150002

    Iv tried both the latest version and the beta API and have the same problem. Iv also looked through the IB message boards and have found no mention of ntstatus 0xc0150002 or manifest files for the dlls.

    is the TwsSocketClient.dll supposed to come with a manifest file?

  2. Are you on vista?
  3. no XP.

    a little more detail. when i comment out the parent class EWrapper from my IB handler it runs fine. but when I compile with EWrapper as a parent class it errors before it gets to the first line of the app. the IB handler is initialized on the heap after the app starts running so it isint crashing while trying to initialize it.
  4. One other question, you compiling as debug, or release?
  5. same problem regardless of debug or release
  6. your application need XXX.dll to load api or resources.
    try to search installation cd or xp environment.
    if got xxx.dll ,copy it to the right place.

    good luck.
  7. problem solved. apparently IB recently(in the past year) started compiling their dlls in a newer version of msvc which required updated dlls to read the manifests correctly.