Sign in to follow this  
barouqeanxiety

Release- errors, Debug-no Errors...

Recommended Posts

So when I release my source I get around 11 errors. When its debug. I get 0. All the errors are data Type conversion Errors: ex: .\D3DManager.cpp(37) : error C2664: 'D3DManager::errorCheck' : cannot convert parameter 2 from 'const char [54]' to 'LPCTSTR' Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast .\D3DManager.cpp(64) : error C2440: '=' : cannot convert from 'const char [53]' to 'LPTSTR' Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast .\D3DManager.cpp(70) : error C2440: '=' : cannot convert from 'const char [56]' to 'LPTSTR' Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast .\D3DManager.cpp(76) : error C2440: '=' : cannot convert from 'const char [45]' to 'LPTSTR' Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast .\D3DManager.cpp(81) : error C2664: 'wsprintfW' : cannot convert parameter 2 from 'const char [17]' to 'LPCWSTR' Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast .\D3DManager.cpp(84) : error C2664: 'wsprintfW' : cannot convert parameter 2 from 'const char [8]' to 'LPCWSTR' Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast window.cpp .\window.cpp(21) : error C2440: '=' : cannot convert from 'LPCSTR' to 'LPCWSTR' Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast .\window.cpp(25) : error C2664: 'CreateWindowExW' : cannot convert parameter 3 from 'LPCSTR' to 'LPCWSTR' Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast .\window.cpp(51) : error C2440: '=' : cannot convert from 'LPCSTR' to 'LPCWSTR' Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast .\window.cpp(55) : error C2664: 'CreateWindowExW' : cannot convert parameter 3 from 'LPCSTR' to 'LPCWSTR' Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast main.cpp .\main.cpp(70) : error C2664: 'MessageBoxW' : cannot convert parameter 3 from 'const char [15]' to 'LPCWSTR' Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast im using Multi-Byte not unicode. and as I said it works fine in debug...

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this