Click here to Skip to main content
15,885,546 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi all,
In my visual c++ project, i want to check whether a CString object contain surrogate characters or not.
This is because i want to display a string on a button. But if string containg surrogate charectr whose length more than button length, then exceed charectrs are shown like small box( □ ). so that i want to check each charecter in the string is it hight surrogate charecter or low surrogate charecter. how it is perform?
Posted

Here are the ranges...[^] :)
 
Share this answer
 
There two windows macros are available

C++
IS_HIGH_SURROGATE
IS_LOW_SURROGATE


please check with msdn
http://msdn.microsoft.com/en-us/library/windows/desktop/dd318683(v=vs.85).aspx
 
Share this answer
 

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