|
|
------ Build started: Project: Help, Configuration: Debug x64 ------ Compiling... Main.cpp c:\documents and settings\______\my documents\visual studio 2008\projects\copying\copying\readcats.h(41) : error C2440: 'initializing' : cannot convert from 'const wchar_t *' to 'LPCTSTR' Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast Build log was saved at "file://c:\Documents and Settings\______\My Documents\Visual Studio 2008\Projects\Copying\Copying\x64\Debug\BuildLog.htm" Help - 1 error(s), 0 warning(s) ========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ========== |
|
|
The variable name is missing in the second assignment. Since you explicitly use wstring for wide-character strings it makes no sense to use the generic type LPCTSTR. Try LPCWSTR instead. |
The pseudo conclusion I can come to is this then... While I was able to assign the values of a wstring to an LPCTSTR variable (to pass for the URLDownloadToFile() function) in the x86 compiler, the x64 compiler wouldn't accept the Wide formatting in that variable. Instead it had to use an LPCSTR variable with a regular string's formatted version. |