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

Managed C++/CLI

 
QuestionProblem with Datasets in C++/CLI ? Pin
Vinod Sankaranarayanan13-Jan-07 1:26
Vinod Sankaranarayanan13-Jan-07 1:26 
AnswerRe: Problem with Datasets in C++/CLI ? Pin
George L. Jackson13-Jan-07 3:57
George L. Jackson13-Jan-07 3:57 
GeneralRe: Problem with Datasets in C++/CLI ? Pin
Vinod Sankaranarayanan15-Jan-07 19:07
Vinod Sankaranarayanan15-Jan-07 19:07 
GeneralRe: Problem with Datasets in C++/CLI ? Pin
George L. Jackson17-Jan-07 15:45
George L. Jackson17-Jan-07 15:45 
QuestionManaged stream to unmanaged VARIANT Pin
picazo12-Jan-07 6:40
picazo12-Jan-07 6:40 
AnswerRe: Managed stream to unmanaged VARIANT Pin
led mike12-Jan-07 7:15
led mike12-Jan-07 7:15 
GeneralRe: Managed stream to unmanaged VARIANT Pin
picazo12-Jan-07 9:38
picazo12-Jan-07 9:38 
GeneralRe: Managed stream to unmanaged VARIANT Pin
led mike12-Jan-07 11:17
led mike12-Jan-07 11:17 
picazo wrote:
Can you give me an example of how you would do this if the stream is to contain well-formatted xml


No, I will show an example of how things work, I will not do your work for you by providing you an example of how I "would" do it.

System::Xml::XmlDocument^ doc = gcnew System::Xml::XmlDocument();
System::IO::StringReader^ stream = gcnew System::IO::StringReader("<halp><halpme value=\"22\"/></halpme>");
doc->Load(stream);
System::String^ managedStr = doc->DocumentElement->Name;
System::String^ sval = 
	((System::Xml::XmlElement^)doc->DocumentElement->FirstChild)->GetAttribute("value");
int nval = System::Convert::ToInt32( sval);
_variant_t variant(nval);

std::cout << nval << std::endl;
std::cout << (int)variant << std::endl;


led mike

QuestionManaged String to Unmanaged VARIANT Pin
picazo12-Jan-07 4:45
picazo12-Jan-07 4:45 
AnswerRe: Managed String to Unmanaged VARIANT Pin
led mike12-Jan-07 5:14
led mike12-Jan-07 5:14 
GeneralRe: Managed String to Unmanaged VARIANT Pin
Nish Nishant12-Jan-07 5:58
sitebuilderNish Nishant12-Jan-07 5:58 
GeneralRe: Managed String to Unmanaged VARIANT Pin
led mike12-Jan-07 7:25
led mike12-Jan-07 7:25 
AnswerRe: Managed String to Unmanaged VARIANT Pin
Nish Nishant12-Jan-07 6:01
sitebuilderNish Nishant12-Jan-07 6:01 
GeneralRe: Managed String to Unmanaged VARIANT Pin
picazo12-Jan-07 6:10
picazo12-Jan-07 6:10 
GeneralRe: Managed String to Unmanaged VARIANT Pin
Nish Nishant12-Jan-07 6:43
sitebuilderNish Nishant12-Jan-07 6:43 
Questionsmtp DLL needs minor adjustment Pin
Big Steve (C++)11-Jan-07 9:37
Big Steve (C++)11-Jan-07 9:37 
AnswerRe: smtp DLL needs minor adjustment Pin
Jonathan [Darka]11-Jan-07 22:27
professionalJonathan [Darka]11-Jan-07 22:27 
QuestionCrystal Report NOT visible from an VS 2003 C++ Dot NET 2003 MFC (Managed app). Pin
Madhu_TN11-Jan-07 8:14
Madhu_TN11-Jan-07 8:14 
QuestionUsing of extern functions Pin
Epi10-Jan-07 22:46
Epi10-Jan-07 22:46 
AnswerRe: Using of extern functions Pin
bsaksida11-Jan-07 5:58
bsaksida11-Jan-07 5:58 
QuestionServer Client Application Pin
Saber00110-Jan-07 22:30
Saber00110-Jan-07 22:30 
AnswerRe: Server Client Application Pin
Mark Salsbery11-Jan-07 5:57
Mark Salsbery11-Jan-07 5:57 
Questionbeginthread error Pin
dellthinker10-Jan-07 13:15
dellthinker10-Jan-07 13:15 
AnswerRe: beginthread error Pin
Mark Salsbery10-Jan-07 13:34
Mark Salsbery10-Jan-07 13:34 
GeneralRe: beginthread error Pin
dellthinker10-Jan-07 13:51
dellthinker10-Jan-07 13:51 

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.