Weird behavior / bug(?) with VC++ Studio 2005 (Beta 2)

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



I am getting the following 2 error messages from the compiler:

f:\development\projects 2005\fc\fc.cpp(296) : error C2664: 'wsprintfW' :
cannot convert parameter 1 from 'LPSTR' to 'LPWSTR'

Types pointed to are unrelated; conversion requires
reinterpret_cast, C-style cast or function-style cast



f:\development\projects 2005\fc\fc.cpp(373) : error C2664: 'FindFirstFileW'
: cannot convert parameter 1 from 'const char *' to 'LPCWSTR'

Types pointed to are unrelated; conversion requires
reinterpret_cast, C-style cast or function-style cast


My code does not have "wsprintfW" & "FindFirstFileW" !
What I do have is "wsprintf" & "FindFirstFile".

Anybody heard about such behavior of the C++ compiler?

Thanks,
David


.



Relevant Pages