Code:
Error 1 error C2664: 'ID3DXFont::DrawTextW' : cannot convert parameter 2 from 'char [1024]' to 'LPCWSTR' c:\users\chris\desktop\uptodatebase\my hacks\cabase\directx.cpp 27 1 CaBase
&
Code:
2 IntelliSense: argument of type "char *" is incompatible with parameter of type "LPCWSTR" c:\users\chris\desktop\uptodatebase\my hacks\cabase\directx.cpp 27 26 CaBase
this is what is causing it
Code:
void cDirectx::DrawString(int x, int y, DWORD color, LPD3DXFONT g_pFont, const char *fmt, ...)
{
RECT FontPos = { x, y, x + 120, y + 16 };
char buf[1024] = {'\0'};
va_list va_alist;
va_start(va_alist, fmt);
vsprintf_s(buf, fmt, va_alist);
va_end(va_alist);
g_pFont->DrawText(NULL, buf, -1, &FontPos, DT_NOCLIP, color);
}