This site is no longer active and is available for archival purposes only. Registration and login is disabled.

Compile Issue


Compile Issue

Postby eyespy » Mar 29, 2003 @ 5:02am

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
User avatar
eyespy
pm Member
 
Posts: 9
Joined: Mar 14, 2002 @ 8:26pm
Location: texas


Found same issue : different thread

Postby eyespy » Mar 29, 2003 @ 5:33am

User avatar
eyespy
pm Member
 
Posts: 9
Joined: Mar 14, 2002 @ 8:26pm
Location: texas


Postby ppcStudios » Mar 29, 2003 @ 6:50am

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.
G.R. Moore
President/CEO
Pocket PC Studios
www.ppcstudios.com

Image
User avatar
ppcStudios
pm Insider
 
Posts: 744
Joined: Aug 23, 2002 @ 3:53pm
Location: Canfield, Ohio


Return to GapiDraw


Sort


Forum Description

The Cross-platform Graphics SDK for Palms, Pocket PCs, Symbian Devices, and Stationary PCs.

Moderators:

sponge, Johan

Forum permissions

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum