Page 1 of 1

Font::drawf

PostPosted: Jul 15, 2004 @ 8:47am
by Bapdude

PostPosted: Jul 15, 2004 @ 10:16am
by Conan
rather than try to solve this can I suggest that you do your text a different way to avoid having to do the 'IFDEF' stuff. I have been through all of this so I know what I'm doing (I don't say that very often :) )

use TCHAR and the _t macros throughout. A few sample code lines (I can provide many more).keystr is defined as TCHAR [nn]

m_font.draw(display,109,239, FONT_LEFT,TEXT("V"));

LoadString(_Module.GetResourceInstance(),IDS_GUILD2A,keystr,26);
m_font.draw(display,120, 30, FONT_CENTER, keystr);

_itot(bases[cur_base].trade[z+16].cost,keystr,10);
m_font.draw(display,200,110+(12*z), FONT_RIGHT,keystr);

PostPosted: Jul 15, 2004 @ 12:10pm
by simonjacobs

PostPosted: Jul 15, 2004 @ 7:54pm
by Bapdude
Thanks Conan/Simon...I appreciate your suggestions. I'll give them a try and see if it fixes the problem.

PostPosted: Jul 16, 2004 @ 6:35am
by Bapdude

PostPosted: Jul 16, 2004 @ 7:17am
by Andy

PostPosted: Jul 16, 2004 @ 7:21am
by Conan

PostPosted: Jul 16, 2004 @ 11:07am
by simonjacobs

PostPosted: Jul 18, 2004 @ 6:41pm
by Bapdude