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

C / C++ / MFC

 
Questionmap in mfc Pin
hrishiS10-Mar-09 1:41
hrishiS10-Mar-09 1:41 
AnswerRe: map in mfc Pin
Iain Clarke, Warrior Programmer10-Mar-09 1:47
Iain Clarke, Warrior Programmer10-Mar-09 1:47 
AnswerRe: map in mfc Pin
Nishad S10-Mar-09 2:38
Nishad S10-Mar-09 2:38 
AnswerRe: map in mfc Pin
CPallini10-Mar-09 3:01
mveCPallini10-Mar-09 3:01 
GeneralRe: map in mfc Pin
Eytukan10-Mar-09 6:46
Eytukan10-Mar-09 6:46 
AnswerRe: map in mfc Pin
Stephen Hewitt10-Mar-09 3:06
Stephen Hewitt10-Mar-09 3:06 
AnswerRe: map in mfc Pin
Eytukan10-Mar-09 6:50
Eytukan10-Mar-09 6:50 
QuestionDifferent encoding?? Pin
gothic_coder10-Mar-09 1:03
gothic_coder10-Mar-09 1:03 
Sorry for my repeat post as my previous post crosses so many pages...

I'll explain my problem once again...

I've one database which includes chinese and english character... Now extracting from the database is done..with the help of connection object and query and all other thing..That's not the issue...

Now when i extract the part (Field) which contains both english and chinese character with the help of this..

_bstr_r  bstrString_Dest;
bstrString_Dest= m_cpRecordsetSearch->Fields->GetItem("DestinationValue")->GetValue().bstrVal;


Now when i see using quick watch or tool tip it comes "abc??????" question marks are actually chinese character...

Now i do this to write into the file...

stream = fopen(pszwritepath, "ab");
if(stream == NULL)
{
   return 0;
}

int n = fwprintf(stream, L"%ls\r\n", (wchar_t*)bstrString_Dest);


It comes to notepad as "abc(aquare brackets)"... Now when i copy the text from notepad and paste to MS-Word or MS-Access it shows perfectly.. i.e "abc(chinese character)"... But when i see same file on chinese machine it shows junk character...

So where am i going wrong?? Is there something encoding compatibility of notepad in my machine and chinese machine?? I'm really stuck in here...
AnswerRe: Different encoding?? Pin
Iain Clarke, Warrior Programmer10-Mar-09 1:43
Iain Clarke, Warrior Programmer10-Mar-09 1:43 
AnswerRe: Different encoding?? Pin
gothic_coder10-Mar-09 1:45
gothic_coder10-Mar-09 1:45 
GeneralRe: Different encoding?? Pin
Iain Clarke, Warrior Programmer10-Mar-09 2:14
Iain Clarke, Warrior Programmer10-Mar-09 2:14 
GeneralRe: Different encoding?? Pin
CPallini10-Mar-09 3:55
mveCPallini10-Mar-09 3:55 
QuestionWhile creating thread error C2665: 'AfxBeginThread' Pin
Abhijit D. Babar10-Mar-09 0:45
Abhijit D. Babar10-Mar-09 0:45 
AnswerRe: While creating thread error C2665: 'AfxBeginThread' Pin
Jijo.Raj10-Mar-09 0:52
Jijo.Raj10-Mar-09 0:52 
AnswerRe: While creating thread error C2665: 'AfxBeginThread' Pin
Cedric Moonen10-Mar-09 0:53
Cedric Moonen10-Mar-09 0:53 
QuestionGet the keys present in the section of an ini file... Pin
siva45510-Mar-09 0:24
siva45510-Mar-09 0:24 
AnswerRe: Get the keys present in the section of an ini file... Pin
Paresh Chitte10-Mar-09 0:44
Paresh Chitte10-Mar-09 0:44 
AnswerRe: Get the keys present in the section of an ini file... Pin
Iain Clarke, Warrior Programmer10-Mar-09 0:46
Iain Clarke, Warrior Programmer10-Mar-09 0:46 
AnswerRe: Get the keys present in the section of an ini file... - REPOST Pin
Iain Clarke, Warrior Programmer10-Mar-09 1:00
Iain Clarke, Warrior Programmer10-Mar-09 1:00 
GeneralRe: Get the keys present in the section of an ini file... - REPOST Pin
siva45510-Mar-09 1:34
siva45510-Mar-09 1:34 
GeneralRe: Get the keys present in the section of an ini file... - REPOST Pin
Iain Clarke, Warrior Programmer10-Mar-09 1:38
Iain Clarke, Warrior Programmer10-Mar-09 1:38 
GeneralRe: Get the keys present in the section of an ini file... - REPOST Pin
Hamid_RT10-Mar-09 2:25
Hamid_RT10-Mar-09 2:25 
QuestionHow to change the cursor for a Text Control Pin
pandit8410-Mar-09 0:17
pandit8410-Mar-09 0:17 
AnswerRe: How to change the cursor for a Text Control Pin
CPallini10-Mar-09 0:30
mveCPallini10-Mar-09 0:30 
GeneralRe: How to change the cursor for a Text Control Pin
Iain Clarke, Warrior Programmer10-Mar-09 0:52
Iain Clarke, Warrior Programmer10-Mar-09 0:52 

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.