Original Post
I'm getting these errors when I try to compile:
Quote:Here is where I am getting the errors:
.\d3drender.cpp(292) : error C2664: 'CreateFontW' : cannot convert parameter 14 from 'char [32]' to 'LPCWSTR' Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast .\d3drender.cpp(311) : error C2664: 'GetTextExtentPoint32W' : cannot convert parameter 2 from 'char [2]' to 'LPCWSTR' Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast .\d3drender.cpp(318) : error C2664: 'GetTextExtentPoint32W' : cannot convert parameter 2 from 'char [2]' to 'LPCWSTR' Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast .\d3drender.cpp(327) : error C2664: 'ExtTextOutW' : cannot convert parameter 6 from 'char [2]' to 'LPCWSTR'
Quote:
HFONT hFont = CreateFont(iHeight, 0, 0, 0, (m_dwCreateFlags&FCR_BOLD ? FW_BOLD : FW_NORMAL), m_dwCreateFlags&FCR_ITALICS, false, false, DEFAULT_CHARSET, OUT_DEFAULT_PRECIS, CLIP_DEFAULT_PRECIS, ANTIALIASED_QUALITY, VARIABLE_PITCH, m_szFontName);