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

PocketFrog: How to get X and Y position of surfase or rect??


PocketFrog: How to get X and Y position of surfase or rect??

Postby gl0om » Mar 26, 2005 @ 2:45pm

gl0om
 


Postby BIGBEN » Mar 26, 2005 @ 5:00pm

User avatar
BIGBEN
pm Member
 
Posts: 281
Joined: Mar 18, 2003 @ 10:18pm
Location: Saint-Petersburg, Russia


Postby Guest » Mar 27, 2005 @ 7:55pm

Guest
 


Postby BIGBEN » Mar 27, 2005 @ 9:29pm

If you want real sprite animation, you can look this Conan's tutorial:
:wink:

P.S. If you want to get answer for some absolutely stupid and simple questions, that you don't want to ask, you can make a search for earlier threads using BIGBEN as an author keyword :lol:
User avatar
BIGBEN
pm Member
 
Posts: 281
Joined: Mar 18, 2003 @ 10:18pm
Location: Saint-Petersburg, Russia


Postby gl0om » Mar 27, 2005 @ 10:59pm

gl0om
pm Member
 
Posts: 4
Joined: Mar 27, 2005 @ 10:40pm


Postby fast_rx » Mar 27, 2005 @ 11:21pm

User avatar
fast_rx
pm Member
 
Posts: 660
Joined: Jun 10, 2003 @ 4:24pm


Postby BIGBEN » Mar 28, 2005 @ 12:41am

If you use TCHAR, then use only macro names for functions and _T("") macro for known text.
_itot instead of _itow
This way you can use one code for PC and PPC

------------GAME LOOP--------------
***
TCHAR* ch = new TCHAR[7];;
_itot(stylus_p.x, ch, 10);
DrawText(hDC, ch, 20, &rcString1, DT_LEFT);
delete[] ch;
-----------------------------------

If you want to copy some text don't forget about + 1 character for null termination:
TCHAR* ch = new TCHAR[_tcslen(SomeCharText) + 1];;

Again you can search in this forum, just use TCHAR as a keyword. :wink:
User avatar
BIGBEN
pm Member
 
Posts: 281
Joined: Mar 18, 2003 @ 10:18pm
Location: Saint-Petersburg, Russia


Return to PocketFrog & PocketHAL


Sort


Forum Description

SDKs for fast and robust device-independent access to Pocket PC display hardware.

Moderators:

sponge, Kzinti

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

cron