PDA

View Full Version : use of QString in visual Studio Project



begineer
1st March 2012, 05:43
Hi,

I am having my DLL project in QT uses QString. i wants to develop application in VC++ (Visual studio2010) and use DLL from QT project have tried to keep Qt DLL as simple C++ code however i use QString which cannot be avoided.
i do not want to make any changes to DLL if possible. and use same DLL in VC++. I have included header file as well as included folder for LIB. still i am getting following error :
fatal error C1083: Cannot open include file: 'QString': No such file or directory.

is there any work around or any plugins available. or anything i can do. i am stuck at this point.

Thanks in advance,

amleto
1st March 2012, 15:10
you need to add qtdir and qtdir/core to your path or libary includes

project -> c/c++ -> general -> additional include directories