Click here to Skip to main content
15,890,438 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Writing to the console only (without re-direction) Pin
Hans Dietrich28-Apr-11 12:09
mentorHans Dietrich28-Apr-11 12:09 
GeneralRe: Writing to the console only (without re-direction) Pin
Member 385202428-Apr-11 12:15
Member 385202428-Apr-11 12:15 
GeneralRe: Writing to the console only (without re-direction) Pin
Hans Dietrich28-Apr-11 12:20
mentorHans Dietrich28-Apr-11 12:20 
GeneralRe: Writing to the console only (without re-direction) Pin
Member 385202428-Apr-11 12:52
Member 385202428-Apr-11 12:52 
GeneralRe: Writing to the console only (without re-direction) Pin
Member 385202428-Apr-11 13:08
Member 385202428-Apr-11 13:08 
AnswerRe: Writing to the console only (without re-direction) Pin
Hans Dietrich28-Apr-11 13:12
mentorHans Dietrich28-Apr-11 13:12 
GeneralRe: Writing to the console only (without re-direction) Pin
Member 385202428-Apr-11 13:29
Member 385202428-Apr-11 13:29 
QuestionXML Parsing using Tiny XML Pin
pix_programmer28-Apr-11 3:55
pix_programmer28-Apr-11 3:55 
Hi!
I've to parse an XML File using Tiny XML. My XML file contents are:

<?xml version="1.0"?>
<request>
<properties name ="TicketID">T5jkbec7i2f410m</properties>
<Form1Buttons>Login,Reset,Exit</Form1Buttons>
</request>


I've to pass "TicketID" and get the result as "T5jkbec7i2f410m". Also I've to pass "Form1Buttons" and get "Login,Reset,Exit" as result.

I've used the following code:

const char* common::Parse_XML_Document(char* filename, char* tagname)
{
    TiXmlDocument * tiDoc = new TiXmlDocument(filename);
	TiXmlElement * tiElement = new TiXmlElement(tagname);
	const char * value = new char[1024];
	//TiXmlAttribute * tiAttribute = new TiXmlElement(tagname);
	if(tiDoc->LoadFile())
	{
      value = tiElement->GetText();
	}
	return value;
}



But value contains only a BadPtr. How to pass the XML file name and the tag name and retrieve the value of that tag?
AnswerRe: XML Parsing using Tiny XML Pin
Code-o-mat28-Apr-11 4:10
Code-o-mat28-Apr-11 4:10 
AnswerRe: XML Parsing using Tiny XML Pin
jschell28-Apr-11 8:24
jschell28-Apr-11 8:24 
QuestionGenerating Huffman Coding using Two Queues and a Cursor Pin
Francis Paran28-Apr-11 3:45
Francis Paran28-Apr-11 3:45 
QuestionRe: Generating Huffman Coding using Two Queues and a Cursor Pin
David Crow28-Apr-11 9:04
David Crow28-Apr-11 9:04 
AnswerRe: Generating Huffman Coding using Two Queues and a Cursor Pin
Francis Paran28-Apr-11 12:17
Francis Paran28-Apr-11 12:17 
GeneralRe: Generating Huffman Coding using Two Queues and a Cursor Pin
David Crow29-Apr-11 4:01
David Crow29-Apr-11 4:01 
GeneralRe: Generating Huffman Coding using Two Queues and a Cursor Pin
Francis Paran29-Apr-11 6:25
Francis Paran29-Apr-11 6:25 
GeneralRe: Generating Huffman Coding using Two Queues and a Cursor Pin
David Crow29-Apr-11 8:20
David Crow29-Apr-11 8:20 
GeneralRe: Generating Huffman Coding using Two Queues and a Cursor Pin
Francis Paran29-Apr-11 10:31
Francis Paran29-Apr-11 10:31 
GeneralRe: Generating Huffman Coding using Two Queues and a Cursor Pin
David Crow2-May-11 2:51
David Crow2-May-11 2:51 
QuestionWindows 7 compatible code in VC++ MFC Pin
Janaiko28-Apr-11 3:34
Janaiko28-Apr-11 3:34 
AnswerRe: Windows 7 compatible code in VC++ MFC Pin
Hans Dietrich28-Apr-11 4:10
mentorHans Dietrich28-Apr-11 4:10 
AnswerRe: Windows 7 compatible code in VC++ MFC Pin
Albert Holguin28-Apr-11 8:41
professionalAlbert Holguin28-Apr-11 8:41 
AnswerRe: Windows 7 compatible code in VC++ MFC Pin
Andrew Phillips30-Apr-11 6:16
Andrew Phillips30-Apr-11 6:16 
QuestionIs PnP Device ID unique Pin
champ2328-Apr-11 2:42
champ2328-Apr-11 2:42 
AnswerRe: Is PnP Device ID unique Pin
Hans Dietrich28-Apr-11 4:12
mentorHans Dietrich28-Apr-11 4:12 
QuestionBitmap in List control Pin
Anu_Bala28-Apr-11 0:28
Anu_Bala28-Apr-11 0:28 

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.