Click here to Skip to main content
15,892,161 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
how can i display an unicode character in any editor when any key is pressed. basically it should display different characters for different key presses.
Posted
Comments
Sergey Alexandrovich Kryukov 27-Mar-12 22:15pm    
Platform? Language?
--SA
subhendu_m 27-Mar-12 22:18pm    
language: visual c++
platform: mine is 64-bit.
Sergey Alexandrovich Kryukov 28-Mar-12 20:38pm    
Just to note: you did not define the platform. It could be some Linux, Windows or many other systems. On Windows, it could be .NET or not, etc.
--SA
subhendu_m 29-Mar-12 10:33am    
platform: windows, .net not used.

1 solution

How? The answer is: easily. Because these days most systems support Unicode.

Further detail depend on such boring things as platform, language, used libraries, etc. It does not look like you care too much about that. :-)

[EDIT: in response to a follow-up question]

With C++, you need to use "UNICODE macro" through
C++
#define UNICODE

More exactly, please see:
http://www.cplusplus.com/forum/articles/16820/[^].

Good luck,
—SA
 
Share this answer
 
v2
Comments
subhendu_m 27-Mar-12 22:23pm    
can u tell me some function to accomplish the same in visual c++?
Sergey Alexandrovich Kryukov 28-Mar-12 20:37pm    
Sure, please see my updated answer, after [EDIT]
--SA

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900