Click here to Skip to main content
15,902,189 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: wcstombs is not working Pin
n1pabs5-Aug-09 5:03
n1pabs5-Aug-09 5:03 
QuestionRe: wcstombs is not working Pin
David Crow5-Aug-09 3:00
David Crow5-Aug-09 3:00 
AnswerRe: wcstombs is not working Pin
Nemanja Trifunovic5-Aug-09 8:35
Nemanja Trifunovic5-Aug-09 8:35 
QuestionCan we change the path of dlls in target directory? Pin
Nilesh Hamane4-Aug-09 22:56
Nilesh Hamane4-Aug-09 22:56 
AnswerRe: Can we change the path of dlls in target directory? Pin
sashoalm5-Aug-09 2:36
sashoalm5-Aug-09 2:36 
GeneralRe: Can we change the path of dlls in target directory? Pin
Nilesh Hamane5-Aug-09 22:46
Nilesh Hamane5-Aug-09 22:46 
GeneralRe: Can we change the path of dlls in target directory? Pin
sashoalm5-Aug-09 23:51
sashoalm5-Aug-09 23:51 
QuestionConverting ANSI to UNICODE Pin
bhanu_reddy094-Aug-09 21:37
bhanu_reddy094-Aug-09 21:37 
Dear All,

I am having problem in converting ANSI to UNICODE but my code is not giving the desired result. Please have a look at the below code and advice me. When I compare the both strings, the strings are not equal after conversion. Please help me. Many thanks in advance.

char szData[2] ;
szData[0] = '♠';
szData[1] = 0;
wchar_t wszData1[] = L"♠";
wchar_t wszData2[2];
MultiByteToWideChar(CP_ACP, 0, szData, -1, wszData2, sizeof(wszData2) / sizeof wchar_t));
if (wcscmp(wszData1, wszData2) == 0)
     MessageBox("Strings are equal!");
else
     MessageBox("Strings are not equal.");

QuestionRe: Converting ANSI to UNICODE Pin
CPallini4-Aug-09 22:06
mveCPallini4-Aug-09 22:06 
AnswerRe: Converting ANSI to UNICODE Pin
Michael Dunn4-Aug-09 22:23
sitebuilderMichael Dunn4-Aug-09 22:23 
GeneralRe: Converting ANSI to UNICODE Pin
bhanu_reddy094-Aug-09 22:34
bhanu_reddy094-Aug-09 22:34 
GeneralRe: Converting ANSI to UNICODE Pin
CPallini4-Aug-09 23:47
mveCPallini4-Aug-09 23:47 
GeneralRe: Converting ANSI to UNICODE Pin
Souldrift4-Aug-09 22:38
Souldrift4-Aug-09 22:38 
GeneralRe: Converting ANSI to UNICODE Pin
bhanu_reddy094-Aug-09 22:42
bhanu_reddy094-Aug-09 22:42 
GeneralRe: Converting ANSI to UNICODE Pin
Souldrift4-Aug-09 23:28
Souldrift4-Aug-09 23:28 
GeneralRe: Converting ANSI to UNICODE Pin
bhanu_85095-Aug-09 2:50
bhanu_85095-Aug-09 2:50 
Question_MailItemPtr Pin
john56324-Aug-09 21:15
john56324-Aug-09 21:15 
AnswerRe: _MailItemPtr Pin
Souldrift4-Aug-09 23:57
Souldrift4-Aug-09 23:57 
Questionmemcpy and buffer concatenation Pin
Madhu_Rani4-Aug-09 21:10
Madhu_Rani4-Aug-09 21:10 
AnswerRe: memcpy and buffer concatenation Pin
CPallini4-Aug-09 21:20
mveCPallini4-Aug-09 21:20 
GeneralRe: memcpy and buffer concatenation Pin
Madhu_Rani4-Aug-09 21:39
Madhu_Rani4-Aug-09 21:39 
GeneralRe: memcpy and buffer concatenation Pin
CPallini4-Aug-09 21:54
mveCPallini4-Aug-09 21:54 
AnswerRe: memcpy and buffer concatenation Pin
«_Superman_»4-Aug-09 21:22
professional«_Superman_»4-Aug-09 21:22 
GeneralRe: memcpy and buffer concatenation Pin
Madhu_Rani4-Aug-09 21:33
Madhu_Rani4-Aug-09 21:33 
AnswerRe: memcpy and buffer concatenation Pin
Rajesh R Subramanian5-Aug-09 1:17
professionalRajesh R Subramanian5-Aug-09 1:17 

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.