Click here to Skip to main content
15,896,912 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: IID_IHTMLElement Failing Pin
Abhi Lahare19-Apr-07 2:59
Abhi Lahare19-Apr-07 2:59 
AnswerRe: IID_IHTMLElement Failing Pin
Mark Salsbery16-Apr-07 10:26
Mark Salsbery16-Apr-07 10:26 
AnswerRe: IID_IHTMLElement Failing Pin
Stephen Hewitt16-Apr-07 14:23
Stephen Hewitt16-Apr-07 14:23 
GeneralRe: IID_IHTMLElement Failing [modified] Pin
Abhi Lahare16-Apr-07 19:51
Abhi Lahare16-Apr-07 19:51 
QuestionTBSTYLE_EX_DRAWDDARROWS Pin
bob1697216-Apr-07 5:50
bob1697216-Apr-07 5:50 
QuestionMBCS - Character range generation Pin
John R. Shaw16-Apr-07 5:36
John R. Shaw16-Apr-07 5:36 
AnswerRe: MBCS - Character range generation Pin
Michael Dunn16-Apr-07 9:57
sitebuilderMichael Dunn16-Apr-07 9:57 
GeneralRe: MBCS - Character range generation Pin
John R. Shaw16-Apr-07 12:28
John R. Shaw16-Apr-07 12:28 
Michael Dunn wrote:
how can you tell which sequences are legal?


There are two functions that can be used to determine that: isleadbyte and mblen.

Michael Dunn wrote:
I don't understand the "No knowledge of the code-page may be used" part.


I added that restriction because I feel that it should be doable without that knowledge. For instance, I do not need that knowledge in order to determine if the bye is a lead byte or to determine if 2 bytes represent a single multi-byte character. There should be enough information buried in the STL some where to allow me to ignore the current code page.

That being said, I do have some C code (written for Win 3.1) designed to handle some MBCS code pages given the code page number. The code pages covered are Shift-JIS, Big-5, Korean, and etc…, which would be easy to convert to my current requirements.

The given code is the only place in the entire project where the knowledge is required and I did not want to have to provide code page specific code. I wish there was more support built into the standard for handling multi-byte, because I do not like having to fall back to functions defined in the C standard.



INTP
"Program testing can be used to show the presence of bugs, but never to show their absence."Edsger Dijkstra

Questionwhere are my attributes Pin
zqueezy16-Apr-07 5:33
zqueezy16-Apr-07 5:33 
AnswerRe: where are my attributes Pin
toxcct16-Apr-07 5:36
toxcct16-Apr-07 5:36 
GeneralRe: where are my attributes Pin
zqueezy16-Apr-07 5:46
zqueezy16-Apr-07 5:46 
GeneralRe: where are my attributes Pin
Hamid_RT16-Apr-07 9:28
Hamid_RT16-Apr-07 9:28 
GeneralRe: where are my attributes Pin
toxcct16-Apr-07 9:55
toxcct16-Apr-07 9:55 
AnswerRe: where are my attributes Pin
Mark Salsbery16-Apr-07 5:56
Mark Salsbery16-Apr-07 5:56 
GeneralRe: where are my attributes Pin
zqueezy16-Apr-07 6:09
zqueezy16-Apr-07 6:09 
QuestionHeart Beat Pin
nahitan16-Apr-07 4:52
nahitan16-Apr-07 4:52 
AnswerRe: Heart Beat Pin
pbraun16-Apr-07 5:46
pbraun16-Apr-07 5:46 
AnswerRe: Heart Beat Pin
Moak17-Apr-07 1:09
Moak17-Apr-07 1:09 
AnswerRe: Heart Beat Pin
cmk17-Apr-07 10:04
cmk17-Apr-07 10:04 
QuestionHerat Beat Pin
nahitan16-Apr-07 4:49
nahitan16-Apr-07 4:49 
GeneralRe: Herat Beat Pin
Moak13-Mar-08 14:51
Moak13-Mar-08 14:51 
QuestionWhat compilers do you use? Pin
Code232616-Apr-07 4:48
Code232616-Apr-07 4:48 
AnswerRe: What compilers do you use? Pin
toxcct16-Apr-07 5:19
toxcct16-Apr-07 5:19 
GeneralRe: What compilers do you use? Pin
Code232616-Apr-07 7:51
Code232616-Apr-07 7:51 
GeneralRe: What compilers do you use? Pin
Rajesh R Subramanian16-Apr-07 8:07
professionalRajesh R Subramanian16-Apr-07 8:07 

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.