Click here to Skip to main content
15,893,588 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Need help wif toggling check box Pin
peterchen12-Oct-03 23:48
peterchen12-Oct-03 23:48 
Questionhow to read unicode file Pin
YaronNir12-Oct-03 23:13
YaronNir12-Oct-03 23:13 
AnswerRe: how to read unicode file Pin
Anand Paranjpe12-Oct-03 23:36
Anand Paranjpe12-Oct-03 23:36 
GeneralRe: how to read unicode file Pin
YaronNir12-Oct-03 23:47
YaronNir12-Oct-03 23:47 
GeneralRe: how to read unicode file Pin
Anthony_Yio13-Oct-03 0:45
Anthony_Yio13-Oct-03 0:45 
GeneralMFC / ActiveX integration error Pin
przemm12-Oct-03 22:58
przemm12-Oct-03 22:58 
Generaldebugging layered service providers Pin
andy dungey12-Oct-03 22:39
andy dungey12-Oct-03 22:39 
QuestionDifference btw MBCS and Unicode? Pin
fynox12-Oct-03 22:32
fynox12-Oct-03 22:32 
Hi, I'm a little confused...

Under MBCS the following code works...
---------------------------------------------------------------------

main_doc->SelectByID(au2B(CEditUPara::UComp),au2B("COMPONENT"), 0, 0, 0, &retval);

main_doc->ShowComponent2 ( );

=====================================================================

But under Unicode, i needed to do this for a particular part of the code...
---------------------------------------------------------------------

CString type = "COMPONENT";
BSTR ucomp = CEditUPara::UComp.AllocSysString();
BSTR Type = type.AllocSysString();

main_doc->SelectByID(ucomp,Type, 0, 0, 0, &retval);

main_doc->ShowComponent2 ( );

=====================================================================

The weird thing is that,

---------------------------------------------------------------------
main_doc->IParameter(au2B(Diameter), &dim );
=====================================================================

still works in some other parts of the code...I can compile and run it successfully...Why is this so??

Thanks!

AnswerRe: Difference btw MBCS and Unicode? Pin
Anand Paranjpe12-Oct-03 23:05
Anand Paranjpe12-Oct-03 23:05 
AnswerRe: Difference btw MBCS and Unicode? Pin
Anthony_Yio13-Oct-03 1:05
Anthony_Yio13-Oct-03 1:05 
AnswerRe: Difference btw MBCS and Unicode? Pin
Michael Dunn13-Oct-03 4:37
sitebuilderMichael Dunn13-Oct-03 4:37 
GeneralRe: Difference btw MBCS and Unicode? Pin
fynox13-Oct-03 16:28
fynox13-Oct-03 16:28 
General100% CPU Usage problem in multithreading Pin
samhita12-Oct-03 22:32
samhita12-Oct-03 22:32 
GeneralRe: 100% CPU Usage problem in multithreading Pin
jmkhael12-Oct-03 22:49
jmkhael12-Oct-03 22:49 
GeneralRe: 100% CPU Usage problem in multithreading Pin
Anand Paranjpe12-Oct-03 22:51
Anand Paranjpe12-Oct-03 22:51 
GeneralRe: 100% CPU Usage problem in multithreading Pin
samhita13-Oct-03 2:51
samhita13-Oct-03 2:51 
GeneralRe: 100% CPU Usage problem in multithreading Pin
jhwurmbach13-Oct-03 3:19
jhwurmbach13-Oct-03 3:19 
GeneralRe: 100% CPU Usage problem in multithreading Pin
Michael Dunn13-Oct-03 4:40
sitebuilderMichael Dunn13-Oct-03 4:40 
GeneralRe: 100% CPU Usage problem in multithreading Pin
jhwurmbach13-Oct-03 4:46
jhwurmbach13-Oct-03 4:46 
Questionwho knows shared memory of command window? Pin
includeh1012-Oct-03 22:10
includeh1012-Oct-03 22:10 
AnswerRe: who knows shared memory of command window? Pin
Anthony_Yio13-Oct-03 1:13
Anthony_Yio13-Oct-03 1:13 
GeneralRemoving icon from header Pin
Chernobog112-Oct-03 21:51
Chernobog112-Oct-03 21:51 
GeneralRe: Removing icon from header Pin
Anand Paranjpe12-Oct-03 22:45
Anand Paranjpe12-Oct-03 22:45 
GeneralRe: Removing icon from header Pin
Chernobog112-Oct-03 23:34
Chernobog112-Oct-03 23:34 
GeneralRe: Removing icon from header Pin
Anand Paranjpe12-Oct-03 23:50
Anand Paranjpe12-Oct-03 23:50 

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.