JanBoonen / TwsApiCpp

Improved TWS API POSIX C++ library for the Interactive Brokers (IB) TWS (same project as TwsApiC++ in Yahoo TWSAPI).
106 stars 56 forks source link

Using TwsApiCpp with a MinGW project #2

Closed Fractally closed 8 years ago

Fractally commented 8 years ago

I am looking for a cross platform IB API that I can use with my project (that makes use of MinGW - it is based on the Qt framework).

I have found this project which appears to be a possible candidate. I am however not too clued-up on the entire IB API yet and have some questions regarding the use of this API wrapper.

I assume that in order to use TwsApiCpp, I will have to compile the library using MinGW. Would anything stop me from doing so? I'm unsure about the dependencies for the API. I've noticed that EClientSocketBaseImpl requires StdAfx and that a dummy afxwin.h file has been created in "TwsApiC++/Src". Am I supposed to include the afxwin.h in another file? I ask this because I've noticed the #define CorrectAfxWinIncluded check in TwsApiL0, but have yet to see it included in any other file.

I would really like to use this wrapper for the IB posix API as it seems to make things easier, but I am unsure how exactly to use it in my case. If you could answer my questions, I will appreciate it.

Thanks

Fractally commented 8 years ago

Never mind. I created a library that works with MinGW.