Click here to Skip to main content
15,891,567 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: CDatabase Create Table Pin
rdop24-Aug-09 20:38
rdop24-Aug-09 20:38 
QuestionResource leak Pin
kumar sanghvi24-Aug-09 19:43
kumar sanghvi24-Aug-09 19:43 
AnswerRe: Resource leak Pin
autodebug24-Aug-09 20:18
autodebug24-Aug-09 20:18 
GeneralRe: Resource leak Pin
Shalyapin8-Feb-10 4:11
Shalyapin8-Feb-10 4:11 
AnswerRe: Resource leak Pin
Naveen24-Aug-09 20:19
Naveen24-Aug-09 20:19 
QuestionDisplaying WMF File in GDI+ Pin
VCsamir24-Aug-09 19:40
VCsamir24-Aug-09 19:40 
AnswerRe: Displaying WMF File in GDI+ Pin
CPallini24-Aug-09 21:50
mveCPallini24-Aug-09 21:50 
Generalreading unicode files Pin
Rakesh524-Aug-09 16:40
Rakesh524-Aug-09 16:40 
Hi all,

I am making my application unicode supporting one. i have .txt,.doc files.. i want to upload the file in my application.

I want to check what type of file before loading.. i am able to check whether ANSII or Unicode using BOM. I dont know how to check for UTf-8 and Unicode Big Endian type files. Its not accepting BOM condition.

Does anyone know how to check that one?
------------------------------------------------
Code Snippet:

This is how, i check for unicode encoded file:
if (file.Read(&firstChar, sizeof(wchar_t)) > 0 && firstChar == (wchar_t)0xFEFF)
{
......
}
But, UTF-8 and unicode big endian type of files dont satisfy this condition.
--------------------
Please guide me how to resolve this issue.

Thanks,
Rakesh.
GeneralRe: reading unicode files Pin
«_Superman_»24-Aug-09 19:23
professional«_Superman_»24-Aug-09 19:23 
GeneralRe: reading unicode files Pin
Karri Mohan24-Aug-09 22:00
Karri Mohan24-Aug-09 22:00 
QuestionDirectx small question Pin
nirishere24-Aug-09 13:41
nirishere24-Aug-09 13:41 
AnswerRe: Directx small question Pin
Code-o-mat24-Aug-09 21:51
Code-o-mat24-Aug-09 21:51 
GeneralRe: Directx small question Pin
nirishere25-Aug-09 0:00
nirishere25-Aug-09 0:00 
GeneralRe: Directx small question Pin
Code-o-mat25-Aug-09 0:13
Code-o-mat25-Aug-09 0:13 
GeneralRe: Directx small question Pin
nirishere25-Aug-09 0:45
nirishere25-Aug-09 0:45 
GeneralRe: Directx small question Pin
Code-o-mat25-Aug-09 0:56
Code-o-mat25-Aug-09 0:56 
GeneralRe: Directx small question Pin
nirishere25-Aug-09 1:54
nirishere25-Aug-09 1:54 
QuestionHow to get the cursor position? Pin
Orchus24-Aug-09 8:01
Orchus24-Aug-09 8:01 
AnswerRe: How to get the cursor position? Pin
Rajesh R Subramanian24-Aug-09 8:10
professionalRajesh R Subramanian24-Aug-09 8:10 
QuestionRe: How to get the cursor position? Pin
David Crow24-Aug-09 10:24
David Crow24-Aug-09 10:24 
AnswerRe: How to get the cursor position? Pin
Orchus25-Aug-09 3:03
Orchus25-Aug-09 3:03 
GeneralRe: How to get the cursor position? Pin
David Crow25-Aug-09 3:06
David Crow25-Aug-09 3:06 
GeneralRe: How to get the cursor position? Pin
Orchus25-Aug-09 6:29
Orchus25-Aug-09 6:29 
QuestionRe: How to get the cursor position? Pin
David Crow25-Aug-09 6:40
David Crow25-Aug-09 6:40 
AnswerRe: How to get the cursor position? Pin
Orchus25-Aug-09 10:03
Orchus25-Aug-09 10:03 

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.