Click here to Skip to main content
15,898,769 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionQuestion about CListCtrl Pin
Hans Dietrich15-Feb-11 13:15
mentorHans Dietrich15-Feb-11 13:15 
AnswerRe: Question about CListCtrl Pin
Rolf Kristensen15-Feb-11 14:36
Rolf Kristensen15-Feb-11 14:36 
AnswerRe: Question about CListCtrl Pin
ThatsAlok15-Feb-11 21:14
ThatsAlok15-Feb-11 21:14 
GeneralRe: Question about CListCtrl Pin
Hans Dietrich15-Feb-11 21:25
mentorHans Dietrich15-Feb-11 21:25 
QuestionHow to Use ODBC API for SQLFetchScroll. Pin
janaswamy uday15-Feb-11 2:22
janaswamy uday15-Feb-11 2:22 
AnswerRe: How to Use ODBC API for SQLFetchScroll. Pin
Niklas L15-Feb-11 2:51
Niklas L15-Feb-11 2:51 
QuestionMenu in ChildWindow Pin
Anu_Bala15-Feb-11 0:14
Anu_Bala15-Feb-11 0:14 
QuestionHow do I recalculated the checksum in the bookmarks file of chrome after changing it manually? Pin
yogish29314-Feb-11 23:52
yogish29314-Feb-11 23:52 
AnswerRe: How do I recalculated the checksum in the bookmarks file of chrome after changing it manually? Pin
Andrew Brock15-Feb-11 1:41
Andrew Brock15-Feb-11 1:41 
QuestionUnicode, Unicode Big Endian or UTF-8? What is the difference? Which format is better to write a text file? Pin
Le@rner14-Feb-11 23:35
Le@rner14-Feb-11 23:35 
AnswerRe: Unicode, Unicode Big Endian or UTF-8? What is the difference? Which format is better to write a text file? Pin
_AnsHUMAN_ 15-Feb-11 1:08
_AnsHUMAN_ 15-Feb-11 1:08 
AnswerRe: Unicode, Unicode Big Endian or UTF-8? What is the difference? Which format is better to write a text file? Pin
ShilpiP15-Feb-11 1:11
ShilpiP15-Feb-11 1:11 
GeneralRe: Unicode, Unicode Big Endian or UTF-8? What is the difference? Which format is better to write a text file? Pin
jschell15-Feb-11 7:55
jschell15-Feb-11 7:55 
GeneralRe: Unicode, Unicode Big Endian or UTF-8? What is the difference? Which format is better to write a text file? Pin
ShilpiP15-Feb-11 17:41
ShilpiP15-Feb-11 17:41 
GeneralRe: Unicode, Unicode Big Endian or UTF-8? What is the difference? Which format is better to write a text file? Pin
jschell16-Feb-11 9:02
jschell16-Feb-11 9:02 
GeneralRe: Unicode, Unicode Big Endian or UTF-8? What is the difference? Which format is better to write a text file? Pin
ShilpiP16-Feb-11 19:03
ShilpiP16-Feb-11 19:03 
char strUTF8[] = { unsigned char(0xEF), unsigned char(0xBB), unsigned char(0xBF),'\0' };
    	        char str[4];
		sprintf(str,"%c%c",255,254);
		CStdioFile m_OutPutFile;
		m_OutPutFile.Open(_T("C:\\ANSI.txt"),CFile::modeCreate|CFile::modeWrite|CFile::typeBinary);
		m_OutPutFile.Close();
		m_OutPutFile.Open(_T("C:\\UTF8.txt"),CFile::modeCreate|CFile::modeWrite|CFile::typeBinary);
		m_OutPutFile.Write(strUTF8,strlen(strUTF8)*sizeof(char));
		m_OutPutFile.Close();
		m_OutPutFile.Open(_T("C:\\Unicode.txt"),CFile::modeCreate|CFile::modeWrite|CFile::typeBinary);
		m_OutPutFile.Write(str,strlen(str)*sizeof(char));
		m_OutPutFile.Close();


Ok run this code in any console application and check in which encoding format these files are saved.
I believe in LOVE AT FIRST SIGHT...
Bcoz I have loved my Mother...
even since I opened my eyes...(ICAN)

GeneralRe: Unicode, Unicode Big Endian or UTF-8? What is the difference? Which format is better to write a text file? Pin
jschell17-Feb-11 8:23
jschell17-Feb-11 8:23 
AnswerRe: Unicode, Unicode Big Endian or UTF-8? What is the difference? Which format is better to write a text file? Pin
Nemanja Trifunovic15-Feb-11 7:47
Nemanja Trifunovic15-Feb-11 7:47 
QuestionMFC Rich Edit Control Pin
kamaljagesia14-Feb-11 23:34
kamaljagesia14-Feb-11 23:34 
AnswerRe: MFC Rich Edit Control Pin
Andrew Brock15-Feb-11 2:14
Andrew Brock15-Feb-11 2:14 
AnswerRe: MFC Rich Edit Control Pin
Richard MacCutchan15-Feb-11 2:15
mveRichard MacCutchan15-Feb-11 2:15 
Questionconvert Cpoint to CRect Pin
sarfaraznawaz14-Feb-11 20:22
sarfaraznawaz14-Feb-11 20:22 
AnswerRe: convert Cpoint to CRect PinPopular
Cedric Moonen14-Feb-11 20:28
Cedric Moonen14-Feb-11 20:28 
GeneralRe: convert Cpoint to CRect Pin
sarfaraznawaz15-Feb-11 21:48
sarfaraznawaz15-Feb-11 21:48 
AnswerRe: convert Cpoint to CRect Pin
patelmayur31-May-11 3:09
patelmayur31-May-11 3:09 

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.