   Works in Vista but not in 7
  Hello everyone,I have gotten to a point using the basics of DX10, specifically the August 09 sdk release but I am now on another stumbling block. My code for a small game works perfectly in Vista Home Premium SP1 but cannot compile in Windows 7. Specifically I am getting these errors.1>------ Build started: Project: BreadBasket, Configuration: Debug Win32 ------1>Compiling...1>cl : Command line warning D9035 : option 'Wp64' has been deprecated and will be removed in a future release1>Direct3DFunctions.cpp1>\breadbasket\trunk\direct3dfunctions.cpp(266) : error C2660: 'wcscpy_s' : function does not take 2 arguments1>Game.cpp1>\breadbasket\trunk\game.cpp(218) : error C2664: 'ID3DX10Font::DrawTextA' : cannot convert parameter 2 from 'const wchar_t [14]' to 'LPCSTR'1>   Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast1>\breadbasket\trunk\game.cpp(219) : error C2664: 'ID3DX10Font::DrawTextA' : cannot convert parameter 2 from 'wchar_t [4]' to 'LPCSTR'1>   Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast1>\breadbasket\trunk\game.cpp(220) : error C2664: 'ID3DX10Font::DrawTextA' : cannot convert parameter 2 from 'const wchar_t [12]' to 'LPCSTR'1>   Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast1>c:\users\suusman\documents\breadbasket\trunk\game.cpp(221) : error C2664: 'ID3DX10Font::DrawTextA' : cannot convert parameter 2 from 'wchar_t [4]' to 'LPCSTR'1>   Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast1>c:\users\suusman\documents\breadbasket\trunk\game.cpp(222) : error C2664: 'ID3DX10Font::DrawTextA' : cannot convert parameter 2 from 'const wchar_t [14]' to 'LPCSTR'1>   Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast1>c:\users\suusman\documents\breadbasket\trunk\game.cpp(223) : error C2664: 'ID3DX10Font::DrawTextA' : cannot convert parameter 2 from 'wchar_t [4]' to 'LPCSTR'1>   Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast1>\breadbasket\trunk\game.cpp(226) : error C2664: 'ID3DX10Font::DrawTextA' : cannot convert parameter 2 from 'const wchar_t [47]' to 'LPCSTR'1>   Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast1>\breadbasket\trunk\game.cpp(241) : error C2664: 'ID3DX10Font::DrawTextA' : cannot convert parameter 2 from 'const wchar_t [14]' to 'LPCSTR'1>   Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast1>c:\users\suusman\documents\breadbasket\trunk\game.cpp(242) : error C2664: 'ID3DX10Font::DrawTextA' : cannot convert parameter 2 from 'wchar_t [4]' to 'LPCSTR'1>   Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast1>s\breadbasket\trunk\game.cpp(243) : error C2664: 'ID3DX10Font::DrawTextA' : cannot convert parameter 2 from 'const wchar_t [12]' to 'LPCSTR'1>   Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast1>\breadbasket\trunk\game.cpp(244) : error C2664: 'ID3DX10Font::DrawTextA' : cannot convert parameter 2 from 'wchar_t [4]' to 'LPCSTR'1>   Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast1>\breadbasket\trunk\game.cpp(245) : error C2664: 'ID3DX10Font::DrawTextA' : cannot convert parameter 2 from 'const wchar_t [14]' to 'LPCSTR'1>   Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast1>\breadbasket\trunk\game.cpp(246) : error C2664: 'ID3DX10Font::DrawTextA' : cannot convert parameter 2 from 'wchar_t [4]' to 'LPCSTR'1>   Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast1>GameSprite.cpp1>\breadbasket\trunk\gamesprite.cpp(63) : error C2664: 'D3DX10CreateTextureFromFileA' : cannot convert parameter 2 from 'LPCWSTR' to 'LPCSTR'1>   Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast1>GameTexture.cpp1>\breadbasket\trunk\gametexture.cpp(49) : error C2664: 'D3DX10CreateTextureFromFileA' : cannot convert parameter 2 from 'LPCWSTR' to 'LPCSTR'1>   Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast1>Generating Code...1>Compiling...1>winMain.cpp1>Generating Code...1>Skipping... (no relevant changes detected)1>ACSprite.cpp1>ACSpriteManager.cpp1>BreadGameSprite.cpp1>BreadSpriteManager.cpp1>Collision.cpp1>GameStats.cpp1>MSprite.cpp1>Build log was saved at "\BreadBasket\trunk\Debug\BuildLog.htm"1>BreadBasket - 16 error(s), 1 warning(s)========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========Mainly, I do not understand why I am getting compilation errors using the function wcscpy_s when there is a templated way of using the function with just two parameters that worked just fine in Vista. Should I go ahead and start using DX11 instead and reprogram everything to work correctly in Windows 7?   
  It looks like the Unicode settings for your project are wrong. Enable multibyte support and all should be fine.   ;  Thank you for your response, I have not found anything in Google about enabling multibyte support in Visual Studio. How would I go about doing that? Also I was able to just strcpy_s instead of wcscpy_s and that compiled fine.   ;  Nevermind, I have to rerun the setup, right? Found this page at the msdn site.http://msdn.microsoft.com/en-us/library/ey142t48(VS.80).aspxThanks again.   ;  Your project is set to use multi-byte characters instead of Unicode. Go to your project propreties->General->Character Set and set it to Unicode.   ;Quote:Original post by clowkunNevermind, I have to rerun the setup, right? Found this page at the msdn site.http://msdn.microsoft.com/en-us/library/ey142t48(VS.80).aspxThanks again.That's only for MFC, since your using DirectX 10 I hope you aren't using MFC :)   