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

Managed C++/CLI

 
AnswerRe: running C++ trouble Pin
Saksida Bojan14-Mar-06 19:02
Saksida Bojan14-Mar-06 19:02 
QuestionHow to build 2 projects using "devenv.exe" with different project directory settings Pin
Rafferty Uy13-Mar-06 13:18
Rafferty Uy13-Mar-06 13:18 
AnswerRe: How to build 2 projects using "devenv.exe" with different project directory settings Pin
Rafferty Uy14-Mar-06 14:52
Rafferty Uy14-Mar-06 14:52 
GeneralRe: How to build 2 projects using "devenv.exe" with different project directory settings Pin
Saksida Bojan14-Mar-06 18:57
Saksida Bojan14-Mar-06 18:57 
QuestionError Message Pin
John L. DeVito13-Mar-06 10:28
professionalJohn L. DeVito13-Mar-06 10:28 
AnswerRe: Error Message Pin
George L. Jackson13-Mar-06 10:40
George L. Jackson13-Mar-06 10:40 
GeneralRe: Error Message Pin
John L. DeVito13-Mar-06 10:43
professionalJohn L. DeVito13-Mar-06 10:43 
Questionparse XML problem Pin
alaa2213-Mar-06 9:52
alaa2213-Mar-06 9:52 
i need to supply the name of the XML document when i run the program,,is it right what i did?
it didn't work? how can i make it plz?

#using<<mscorlib.dll>>
using namespace System;
#using <<system.xml.dll>>
using namespace System::Xml;

int main(int argc, char* argv[])
{
//check for required arguments
if (argc <2)
{
Console::WriteLine("Usage :CppXmlTextReader path");
return -1;
}
String^ path = gcnew String(argv[1]);


try
{
//create the reader...
XmlTextReader^ rdr = gcnew XmlTextReader(path);

//Read nodes
while (rdr->Read())
{
//do something with the data
}
//read nodes
while (rdr->Read())
{
switch (rdr->NodeType)
{
case XmlNodeType::XmlDeclaration:
Console::WriteLine("->XML declaration");
break;
case XmlNodeType:ocument:
Console::WriteLine("->Document node");
break;
case XmlNodeType::Element:
Console::WriteLine("->Element node, name{0}",rdr->Name);
break;
case XmlNodeType::EndElement:
Console::WriteLine("->End element node,name={0}",rdr->Name);
break;
case XmlNodeType::Text:
Console::WriteLine("->Text node,value={0}",rdr->Value);
break;
case XmlNodeType::Comment:
Console::WriteLine("->Comment node, name={0},value={1}",rdr->Name,rdr->Value);
break;
case XmlNodeType::Whitespace:
break;
default:
Console::WriteLine("**UnKnown node type");
break;
}
}


}
catch (Exception^ pe)
{
Console::WriteLine(pe->ToString());
}
return 0;
}


-- modified at 15:54 Monday 13th March, 2006
AnswerRe: parse XML problem Pin
George L. Jackson13-Mar-06 10:44
George L. Jackson13-Mar-06 10:44 
AnswerRe: parse XML problem Pin
alaa2213-Mar-06 20:25
alaa2213-Mar-06 20:25 
AnswerRe: parse XML problem Pin
George L. Jackson14-Mar-06 1:27
George L. Jackson14-Mar-06 1:27 
AnswerRe: parse XML problem Pin
alaa2214-Mar-06 2:28
alaa2214-Mar-06 2:28 
GeneralRe: parse XML problem Pin
George L. Jackson14-Mar-06 6:16
George L. Jackson14-Mar-06 6:16 
QuestionModifying DMI Information - I REALLY NEED THAT!!!! Pin
honae13-Mar-06 8:27
honae13-Mar-06 8:27 
AnswerRe: Modifying DMI Information - I REALLY NEED THAT!!!! Pin
George L. Jackson13-Mar-06 10:31
George L. Jackson13-Mar-06 10:31 
AnswerRe: Modifying DMI Information - I REALLY NEED THAT!!!! Pin
Saksida Bojan13-Mar-06 19:39
Saksida Bojan13-Mar-06 19:39 
QuestionDMI EDITOR Pin
honae13-Mar-06 7:25
honae13-Mar-06 7:25 
AnswerRe: DMI EDITOR Pin
George L. Jackson13-Mar-06 10:31
George L. Jackson13-Mar-06 10:31 
Questionhow to know the dll export function's declare? Pin
HOW WHAT12-Mar-06 2:34
HOW WHAT12-Mar-06 2:34 
AnswerRe: how to know the dll export function's declare? Pin
oshah14-Mar-06 23:24
oshah14-Mar-06 23:24 
QuestionTemplates Pin
combatc211-Mar-06 12:57
combatc211-Mar-06 12:57 
AnswerRe: Templates Pin
Nemanja Trifunovic11-Mar-06 13:14
Nemanja Trifunovic11-Mar-06 13:14 
GeneralRe: Templates Pin
combatc212-Mar-06 13:29
combatc212-Mar-06 13:29 
AnswerRe: Templates Pin
George L. Jackson13-Mar-06 10:07
George L. Jackson13-Mar-06 10:07 
QuestionSleep() broken? Pin
theDawckta11-Mar-06 5:29
theDawckta11-Mar-06 5:29 

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.