Click here to Skip to main content
15,849,907 members
Home / Discussions / Managed C++/CLI
   

Managed C++/CLI

 
Questionstd::string to System::String conversion Pin
piul8-Mar-11 6:30
piul8-Mar-11 6:30 
AnswerRe: std::string to System::String conversion Pin
Richard MacCutchan8-Mar-11 6:45
mveRichard MacCutchan8-Mar-11 6:45 
GeneralRe: std::string to System::String conversion Pin
piul8-Mar-11 6:51
piul8-Mar-11 6:51 
GeneralRe: std::string to System::String conversion Pin
Richard MacCutchan8-Mar-11 8:14
mveRichard MacCutchan8-Mar-11 8:14 
GeneralRe: std::string to System::String conversion Pin
piul9-Mar-11 21:48
piul9-Mar-11 21:48 
GeneralRe: std::string to System::String conversion Pin
Richard MacCutchan9-Mar-11 22:55
mveRichard MacCutchan9-Mar-11 22:55 
AnswerRe: std::string to System::String conversion Pin
anti.AS11-Mar-11 0:02
anti.AS11-Mar-11 0:02 
QuestionDisplaying Chinese Characters Pin
T.RATHA KRISHNAN7-Mar-11 2:33
T.RATHA KRISHNAN7-Mar-11 2:33 
Hi!
I've set the Text to my label from an XML file. I need to set a chinese word to a label. Here is my XML file contents:

 <?xml version="1.0" encoding="UTF-8" ?> 
<Remember>游戏目的是使两手牌的点数越比庄家接近</Remember> 


The chinese word is for test purpose only(may not be meaningful word). Here is my code for reading this tag and setting the text to a label.

XmlDocument ^ Config = gcnew XmlDocument;

if(System::IO::File::Exists("Config.xml"))
{
    Config->Load("Config.xml");
}
XPathNavigator ^ nav = Config->CreateNavigator();
XPathNodeIterator ^ iter;
            iter = nav->Select("download/Remember");
while(iter->MoveNext())
{
    System::String ^ ConfigText = iter->Current->Value;
    ConfigText->Trim();
}
System::Runtime::InteropServices::Marshal::StringToHGlobalUni(ConfigText);
m_pRemember->Text = ConfigText;


While I execute the program only boxes are displayed in place of the chinese characters. If I open the XML file in a browser, the chinese characters are displayed. What else to do to display the chinese language?
AnswerRe: Displaying Chinese Characters Pin
John Schroedl7-Mar-11 5:20
professionalJohn Schroedl7-Mar-11 5:20 
QuestionSetting Access Control to a file. [modified] Pin
pix_programmer3-Mar-11 20:47
pix_programmer3-Mar-11 20:47 
AnswerRe: Setting Access Control to a file. Pin
N a v a n e e t h4-Mar-11 6:25
N a v a n e e t h4-Mar-11 6:25 
QuestionUser Control Pin
Milton N3-Mar-11 1:18
Milton N3-Mar-11 1:18 
AnswerRe: User Control Pin
amit_soni3-Mar-11 1:59
amit_soni3-Mar-11 1:59 
QuestionPassing arrays betwen C++ and C# Pin
jordabi2-Mar-11 5:31
jordabi2-Mar-11 5:31 
AnswerRe: Passing arrays betwen C++ and C# Pin
John Schroedl2-Mar-11 5:53
professionalJohn Schroedl2-Mar-11 5:53 
GeneralRe: Passing arrays betwen C++ and C# Pin
jordabi2-Mar-11 6:01
jordabi2-Mar-11 6:01 
GeneralRe: Passing arrays betwen C++ and C# Pin
John Schroedl2-Mar-11 6:05
professionalJohn Schroedl2-Mar-11 6:05 
GeneralRe: Passing arrays betwen C++ and C# Pin
jordabi2-Mar-11 6:25
jordabi2-Mar-11 6:25 
GeneralRe: Passing arrays betwen C++ and C# Pin
John Schroedl2-Mar-11 7:47
professionalJohn Schroedl2-Mar-11 7:47 
GeneralRe: Passing arrays betwen C++ and C# Pin
jordabi2-Mar-11 7:52
jordabi2-Mar-11 7:52 
GeneralRe: Passing arrays betwen C++ and C# Pin
John Schroedl2-Mar-11 8:06
professionalJohn Schroedl2-Mar-11 8:06 
QuestionAssembly Version Pin
jashimu2-Mar-11 3:45
jashimu2-Mar-11 3:45 
AnswerRe: Assembly Version Pin
Richard MacCutchan2-Mar-11 4:20
mveRichard MacCutchan2-Mar-11 4:20 
GeneralRe: Assembly Version Pin
jashimu2-Mar-11 4:29
jashimu2-Mar-11 4:29 
GeneralRe: Assembly Version Pin
Richard MacCutchan2-Mar-11 5:00
mveRichard MacCutchan2-Mar-11 5:00 

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.