Click here to Skip to main content
15,921,606 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: c2146 error missing ";" before identifier HwndMSWheel Pin
Christian Graus25-Jul-05 13:51
protectorChristian Graus25-Jul-05 13:51 
GeneralModeless dialog error Pin
TEOlivier20-Jul-05 9:47
TEOlivier20-Jul-05 9:47 
GeneralRe: Modeless dialog error Pin
David Crow20-Jul-05 10:22
David Crow20-Jul-05 10:22 
GeneralRe: Modeless dialog error Pin
wicked_guy20-Jul-05 22:27
wicked_guy20-Jul-05 22:27 
Generaltype confusion with _bstr_t Pin
LCI20-Jul-05 9:37
LCI20-Jul-05 9:37 
GeneralRe: type confusion with _bstr_t Pin
LCI20-Jul-05 9:58
LCI20-Jul-05 9:58 
GeneralRe: type confusion with _bstr_t Pin
Michael Dunn20-Jul-05 10:42
sitebuilderMichael Dunn20-Jul-05 10:42 
GeneralValid UNICODE character Pin
John R. Shaw20-Jul-05 8:30
John R. Shaw20-Jul-05 8:30 
Is there any way to determine if a wchar_t is a valid UNICODE character?

Requirement: Standared C++, only.

I can easily determine if a character is of a particular type, but I don't need to know the type.

What I need to know is the valid ranges.

Example:
Given a range [c1-c2] of characters; where c1 and c2 are of type wchar_t and may or may not be in the same charater class. The only requirement is that they are consecutive from c1 to c2.

There is an article in MSDN, "Character Match Sets", that describes the ranges in the Unicode Standard, but when comparing them to actual Unicode character sets, they don't seem to match up.

I've been looking for a standared function in the form "int isvalid(wchar_t);", but there does not seem to be one.

My only opptions seem to be:
1) Write my own, that calls all character class specific function.
2) Write my own using iswctype(), specifing all possible flags (See (1) above).

Neither of these realy give me the range, but only provides a means of validating most characters, after the between characters have been generated.

Thanks!

INTP
"The more help VB provides VB programmers, the more miserable your life as a C++ programmer becomes."
Andrew W. Troelsen
QuestionUSB device/hub reset? Pin
jaycush20-Jul-05 7:51
jaycush20-Jul-05 7:51 
AnswerRe: USB device/hub reset? Pin
jaycush21-Jul-05 4:24
jaycush21-Jul-05 4:24 
Generalkilling dll Pin
Ann6620-Jul-05 6:45
sussAnn6620-Jul-05 6:45 
GeneralRe: killing dll Pin
Marc Soleda20-Jul-05 7:03
Marc Soleda20-Jul-05 7:03 
GeneralRe: killing dll Pin
Ann6620-Jul-05 8:07
sussAnn6620-Jul-05 8:07 
GeneralRe: killing dll Pin
David Crow20-Jul-05 9:34
David Crow20-Jul-05 9:34 
GeneralRe: killing dll Pin
Ann6620-Jul-05 11:06
sussAnn6620-Jul-05 11:06 
GeneralRe: killing dll Pin
David Crow21-Jul-05 2:34
David Crow21-Jul-05 2:34 
GeneralWinExec Pin
Usman Tasleem Akshaf20-Jul-05 6:07
Usman Tasleem Akshaf20-Jul-05 6:07 
GeneralRe: WinExec Pin
berndg20-Jul-05 6:15
berndg20-Jul-05 6:15 
GeneralRe: WinExec Pin
Usman Tasleem Akshaf20-Jul-05 6:39
Usman Tasleem Akshaf20-Jul-05 6:39 
GeneralRe: WinExec Pin
Trollslayer20-Jul-05 6:46
mentorTrollslayer20-Jul-05 6:46 
GeneralRe: WinExec Pin
Usman Tasleem Akshaf20-Jul-05 6:52
Usman Tasleem Akshaf20-Jul-05 6:52 
GeneralRe: WinExec Pin
Trollslayer20-Jul-05 10:26
mentorTrollslayer20-Jul-05 10:26 
GeneralRe: WinExec Pin
berndg20-Jul-05 6:50
berndg20-Jul-05 6:50 
GeneralRe: WinExec Pin
Usman Tasleem Akshaf20-Jul-05 6:56
Usman Tasleem Akshaf20-Jul-05 6:56 
GeneralRe: WinExec Pin
toxcct20-Jul-05 20:44
toxcct20-Jul-05 20:44 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.