Click here to Skip to main content
15,895,256 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Questionhow to retrieve color of sliders ticks Pin
CWiC9-Sep-06 2:18
CWiC9-Sep-06 2:18 
GeneralRe: how to retrieve color of sliders ticks Pin
prasad_som9-Sep-06 21:07
prasad_som9-Sep-06 21:07 
GeneralRe: how to retrieve color of sliders ticks Pin
CWiC11-Sep-06 6:55
CWiC11-Sep-06 6:55 
Questionany comments about a cache design? Pin
George_George9-Sep-06 2:18
George_George9-Sep-06 2:18 
Questioninheritance Pin
jon-809-Sep-06 0:45
professionaljon-809-Sep-06 0:45 
AnswerRe: inheritance [modified] Pin
ewighell9-Sep-06 0:59
ewighell9-Sep-06 0:59 
GeneralRe: inheritance Pin
toxcct9-Sep-06 2:19
toxcct9-Sep-06 2:19 
QuestionDesperately need your help. A weird problem about CString Pin
ewighell9-Sep-06 0:42
ewighell9-Sep-06 0:42 
First, UNICODE has been defined in my program.
Second, my CString involves Chinese characters as well as English letters.

the following piece of code runs correctly and the format of the resulted file "myTxt.txt" is Unicode

CFile file(_T("myTxt.txt"), CFile::modeCreate|CFile::modeWrite);
CArchive ar(&file, CArchive::store, 512);
CString str;
str = _T("Welcome 张三");
TRACE(str); //no error
ar.WriteString(str);


however, the following piece of code dose not run correctly and the format of the resulted file "myTxt.txt" is ANSI
CFile file(_T("myTxt.txt"), CFile::modeCreate|CFile::modeWrite);
CArchive ar(&file, CArchive::store, 512);
CString str;
str = m_ListCtrl.getItemText(0,0);
TRACE(str); //no error
ar.WriteString(str);


isn't it weird? anybody has any idea?




Thank you very much!!!

-------------------
I am learning C++ and English

AnswerRe: Desperately need your help. A weird problem about CString Pin
Hamid_RT9-Sep-06 1:50
Hamid_RT9-Sep-06 1:50 
GeneralRe: Desperately need your help. A weird problem about CString Pin
ewighell9-Sep-06 14:45
ewighell9-Sep-06 14:45 
AnswerRe: Desperately need your help. A weird problem about CString. Pin
Hamid_RT9-Sep-06 0:47
Hamid_RT9-Sep-06 0:47 
QuestionPls help to store values in a safearray nd retrive it back again... Pin
toogud9-Sep-06 0:30
toogud9-Sep-06 0:30 
AnswerRe: Pls help to store values in a safearray nd retrive it back again... Pin
Hamid_RT9-Sep-06 1:14
Hamid_RT9-Sep-06 1:14 
GeneralRe: Pls help to store values in a safearray nd retrive it back again... Pin
toogud9-Sep-06 1:16
toogud9-Sep-06 1:16 
GeneralRe: Pls help to store values in a safearray nd retrive it back again... Pin
Hamid_RT9-Sep-06 1:47
Hamid_RT9-Sep-06 1:47 
QuestionFatel error "libmysql.lib" Pin
Y_Kaushik9-Sep-06 0:07
Y_Kaushik9-Sep-06 0:07 
AnswerRe: Fatel error "libmysql.lib" Pin
Hamid_RT9-Sep-06 2:01
Hamid_RT9-Sep-06 2:01 
AnswerRe: Fatel error "libmysql.lib" Pin
CWiC9-Sep-06 2:45
CWiC9-Sep-06 2:45 
QuestionVietnamese in VC++ Pin
halloweenbk8-Sep-06 23:59
halloweenbk8-Sep-06 23:59 
AnswerRe: Vietnamese in VC++ Pin
Hamid_RT9-Sep-06 1:03
Hamid_RT9-Sep-06 1:03 
GeneralRe: Vietnamese in VC++ Pin
halloweenbk11-Sep-06 1:10
halloweenbk11-Sep-06 1:10 
GeneralRe: Vietnamese in VC++ Pin
Hamid_RT11-Sep-06 6:10
Hamid_RT11-Sep-06 6:10 
QuestionRicheditctrl Pin
muravi8-Sep-06 23:06
muravi8-Sep-06 23:06 
AnswerRe: Richeditctrl Pin
Hamid_RT9-Sep-06 0:31
Hamid_RT9-Sep-06 0:31 
GeneralRe: Richeditctrl [modified] Pin
muravi9-Sep-06 1:38
muravi9-Sep-06 1:38 

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.