Original Post
Hi, I just made the switch from VS2003 to VS2005. I converted a solution from vs2003 to vs2005 and I am now getting errors when it ran fine before. For the following code exerpt: const char g_szClass[] = "FrameClass"; WNDCLASSEX wcex; wcex.lpszClassName = g_szClass; // the class name I get the following errors on build: c:\my files\programming\directx\tutorials\role playing game programming with directx\chapter 6 - page 170 - basic d3d app\basic d3d app\basic d3d app\basic d3d app.cpp(219) : error C2440: '=' : cannot convert from 'const char [11]' to 'LPCWSTR' Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast and others all for the same "string to LPCWSTR" casting. Any ideas on why this would be? some type of strict type casting going on? when I do: wcex.lpszClassName = (LPCWSTR)g_szClass; // the class name I get all [] (boxes not brackets) in the text then, this doesnt work so well for me :) Thanks for any ideas you guys got ^^ -sevans