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

numeric keyboard


numeric keyboard

Postby Guest » Mar 24, 2004 @ 11:48pm

hi all,
i trie to make a calculator like.

any one can help me how to strore the numbers pressed wit my
(keyboard) , i tried to use TCHAR and _sprintf but not find the whay.

thanks.
Guest
 


Postby Johan » Mar 25, 2004 @ 11:07am

Johan Sanneblad, M.Sc, Ph.D
GapiDraw Systems Architect
[]
User avatar
Johan
pm Member
 
Posts: 1843
Joined: Jan 12, 2002 @ 12:38pm
Location: Sweden


Postby _moadib » Mar 25, 2004 @ 6:43pm

On phones you can know that numeric key pressed by charcode, example: '5' - key 5... It work at stationary PC( not NumPad)
Or what u want?
_moadib
pm Member
 
Posts: 20
Joined: Mar 20, 2004 @ 8:14am


Postby Guest » Mar 25, 2004 @ 8:13pm

Guest
 


Postby Presto » Mar 26, 2004 @ 3:16pm

by using printf, you're replacing everything in the character string, which is why the 1 is being replaced by 2.

I haven't tried CString myself in any of my PPC apps, but if it works, that would probably be easiest.

Otherwise, you can try concatenation (strcat) (not sure what the unicode version is).

Or, you could use a temporary character string and do your own concatenation:
_stprintf(sTemp, "%s2", m_Saisie);
_stprintf(m_Saisie, "%s", sTemp);

-John
User avatar
Presto
pm Insider
 
Posts: 763
Joined: Jan 20, 2003 @ 5:51am
Location: Kalesian Archipelago


Postby Guest » Mar 26, 2004 @ 10:08pm

Guest
 


Postby Presto » Mar 26, 2004 @ 10:53pm

User avatar
Presto
pm Insider
 
Posts: 763
Joined: Jan 20, 2003 @ 5:51am
Location: Kalesian Archipelago


Postby Guest » Mar 27, 2004 @ 2:15am

Guest
 


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