I have a Qt project and would like to use an external library that includes "afxstr.h". Problem is that whenever I compile after linking to the lib and including their header, I get an error:
#error afxstr.h can only be used in MFC projects. Use atlstr.h
Of course, my project is not an MFC project and I can't use atlstr.h instead because it's not my library.
I'm looking for a quick solution!
I'm using VS2010.
The lib in question is the Interactive Brokers API.
atlstr.h
instead ofafxstr.h
? These two header files might target the same implementation ofCString
. – LeveroniCString
dependency, & an unfortunate API documentation website based on IFRAME (so you can't link to individual pages, tons of console errors in the browser)...are you sure there isn't a more up-and-coming library for your purposes? :-/ Perhaps even an open source one? This one doesn't seem very futureproof. – Antigenqmake/gcc
tool-chain ornmake/cl
tool-chain? Because I guess if your Qt Project usesnmake/cl
tool-chain, you can add MFC support. Or correct it if I'm wrong.. – Brinn