G
Guest
Hi I am using VS 2005 to upgrade a demo project and I came across this error
in a bunch of code which compiles fine on VC++ 2003.
<code>
wchar_t __pin* pVal = PtrToStringChars( val );
</code>
<error>
Error 1 error C2440: 'initializing' : cannot convert from '__const_Char_ptr'
to 'wchar_t __pin *'
</error>
Can anyone give me a hint on how to fix this. Also vcclr.h is included.
Thanks,
blair
in a bunch of code which compiles fine on VC++ 2003.
<code>
wchar_t __pin* pVal = PtrToStringChars( val );
</code>
<error>
Error 1 error C2440: 'initializing' : cannot convert from '__const_Char_ptr'
to 'wchar_t __pin *'
</error>
Can anyone give me a hint on how to fix this. Also vcclr.h is included.
Thanks,
blair