Enrico Forestieri schreef:
On Tue, Feb 23, 2010 at 12:59:41AM +0100, Vincent van Ravesteijn wrote:
Enrico Forestieri schreef:
On Mon, Feb 22, 2010 at 11:17:02PM +0100, Vincent van Ravesteijn wrote:
Compiling with: "/Zc:wchar_t-" solves it for me.
In MSVC this is called "Treat wchar_t as Built-in Type : No". This is
by default set to Yes.
D'oh! And does it work without that option if you replace "wchar_t *"
with "LPCWSTR" ?
I don't know what to replace. The wchar_t * is in the function
declaration in "qstring.h". (or do you want me to modify it there?)
Hmm... you're right, that's out of our control. I am surprised that
this issue has never showed up. The question is whether it is a Qt
or MSVC bug. I tend to opt for this last hypothesis, given that it
works with MinGW.
Is it a bug, if you have to define a compiler option ? What if you turn
this on in MinGW.. does it compile then too ? (something like:
/Zc:wchar_t+, or is the whole option an MSVC thing ?)
Vincent