Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

error C2664 VS2015 #6

Open
lsyaseen opened this issue Feb 21, 2016 · 1 comment
Open

error C2664 VS2015 #6

lsyaseen opened this issue Feb 21, 2016 · 1 comment

Comments

@lsyaseen
Copy link

I followed the read me file and wanted to start the tutorial and I keep getting a number of errors in VS2015 that i cant seem to figure out, can someone help me out?

visual studio 2015\projects\awe\awe\view_win.cc(31): error C2664: 'HWND CreateWindowExA(DWORD,LPCSTR,LPCSTR,DWORD,int,int,int,int,HWND,HMENU,HINSTANCE,LPVOID)': cannot convert argument 2 from 'const wchar_t [13]' to 'LPCSTR'

visual studio 2015\projects\awe\awe\view_win.cc(31): note: Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast

visual studio 2015\projects\awe\awe\view_win.cc(86): error C2440: '=': cannot convert from 'const wchar_t [13]' to 'LPCSTR'

visual studio 2015\projects\awe\awe\view_win.cc(86): note: Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast

visual studio 2015\projects\awe\awe\view_win.cc(114): error C2664: 'BOOL SetWindowTextA(HWND,LPCSTR)': cannot convert argument 2 from 'const wchar_t *' to 'LPCSTR'

visual studio 2015\projects\awe\awe\view_win.cc(114): note: Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast

1> application_win.cc
visual studio 2015\projects\awe\awe\application_win.cc(60): error C2664: 'int
MessageBoxA(HWND,LPCSTR,LPCSTR,UINT)': cannot convert argument 2 from 'const wchar_t *' to 'LPCSTR'

visual studio 2015\projects\awe\awe\application_win.cc(60): note: Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast

@mikicat
Copy link

mikicat commented May 10, 2017

I'm having the same error...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants