Page 1 of 1

Compile Issue

PostPosted: Mar 29, 2003 @ 5:02am
by eyespy
Anyone know why I'd receive the following error:

error C2664: 'long __cdecl CGapiSurface::DrawTextW(unsigned long,unsigned long,const unsigned short *,class CGapiBitmapFont *,unsigned long,struct _GDTEXTFX *,unsigned long *)' : cann
ot convert parameter 3 from 'char [10]' to 'const unsigned short *'

I recently finished my app in VC++ and then setup a project in eVC++ and now I receive this error with the same codebase.

Any ideas?
Thanks!
Greg

Found same issue : different thread

PostPosted: Mar 29, 2003 @ 5:33am
by eyespy

PostPosted: Mar 29, 2003 @ 6:50am
by ppcStudios
Make sure you are using TCHARs for the text. It should work fine if Item[i]->Tag is a pointer to a TCHAR. Worst case, you could _stprintf( ) your Tag into a TCHAR array and pass that instead.