Skip to content

error C2664 VS2015 #6

Description

@lsyaseen

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions