Click here to Skip to main content
15,922,584 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Threads in Classes Pin
Prakash Nadar14-Mar-04 6:44
Prakash Nadar14-Mar-04 6:44 
GeneralRe: Threads in Classes Pin
mmica14-Mar-04 7:08
mmica14-Mar-04 7:08 
GeneralRe: Threads in Classes Pin
Michael Dunn14-Mar-04 12:57
sitebuilderMichael Dunn14-Mar-04 12:57 
GeneralRe: Threads in Classes Pin
Blake Miller17-Mar-04 7:56
Blake Miller17-Mar-04 7:56 
GeneralCRichEditCtrl and UNICODE Pin
sstoyan14-Mar-04 5:50
sstoyan14-Mar-04 5:50 
GeneralRe: CRichEditCtrl and UNICODE Pin
Steve S14-Mar-04 21:54
Steve S14-Mar-04 21:54 
GeneralRe: CRichEditCtrl and UNICODE Pin
sstoyan15-Mar-04 3:50
sstoyan15-Mar-04 3:50 
GeneralRe: CRichEditCtrl and UNICODE Pin
Steve S15-Mar-04 22:15
Steve S15-Mar-04 22:15 
First off, you can check for a BOM (byte order mark), and if there isn't one, scan for EOL ('\n') BYTE using memchr(). If you find one, and there are NUL ('\0') bytes either side of it, it's almost certainly UNICODE.

If your text contains only one line, this won't work, of course.

Steve S
GeneralRe: CRichEditCtrl and UNICODE Pin
sstoyan15-Mar-04 23:15
sstoyan15-Mar-04 23:15 
QuestionHow can i save a text string as a tga file Pin
Orochi14-Mar-04 3:39
Orochi14-Mar-04 3:39 
AnswerRe: How can i save a text string as a tga file Pin
Christian Graus14-Mar-04 15:55
protectorChristian Graus14-Mar-04 15:55 
GeneralURL Does not use a Recognized protocol Pin
muckmail14-Mar-04 2:44
muckmail14-Mar-04 2:44 
GeneralRe: URL Does not use a Recognized protocol Pin
Ravi Bhavnani14-Mar-04 9:20
professionalRavi Bhavnani14-Mar-04 9:20 
Generalisalpha, isalnum Pin
nss14-Mar-04 2:17
nss14-Mar-04 2:17 
GeneralRe: isalpha, isalnum Pin
Michael Dunn14-Mar-04 4:43
sitebuilderMichael Dunn14-Mar-04 4:43 
GeneralRe: isalpha, isalnum Pin
Antti Keskinen14-Mar-04 10:32
Antti Keskinen14-Mar-04 10:32 
GeneralRe: isalpha, isalnum Pin
nss15-Mar-04 12:40
nss15-Mar-04 12:40 
QuestionHow do i create window with menu styles Pin
anematollahi14-Mar-04 0:16
anematollahi14-Mar-04 0:16 
AnswerRe: How do i create window with menu styles Pin
Prakash Nadar14-Mar-04 0:27
Prakash Nadar14-Mar-04 0:27 
Generaldoc-view and database problem Pin
heuriskeinner13-Mar-04 23:59
heuriskeinner13-Mar-04 23:59 
GeneralRe: doc-view and database problem Pin
Prakash Nadar14-Mar-04 0:25
Prakash Nadar14-Mar-04 0:25 
GeneralRequired header <conio.h> of C-library Pin
oOomen13-Mar-04 23:48
oOomen13-Mar-04 23:48 
GeneralRe: Required header &lt;conio.h&gt; of C-library Pin
Prakash Nadar14-Mar-04 0:23
Prakash Nadar14-Mar-04 0:23 
GeneralRe: Required header &lt;conio.h&gt; of C-library Pin
oOomen14-Mar-04 2:02
oOomen14-Mar-04 2:02 
GeneralRe: Required header &lt;conio.h&gt; of C-library Pin
Prakash Nadar14-Mar-04 2:20
Prakash Nadar14-Mar-04 2:20 

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.