Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » U++ Library support » U++ Core » Stream::Putf
Re: Stream::Putf [message #6911 is a reply to message #6900] Mon, 04 December 2006 11:35 Go to previous messageGo to previous message
mirek is currently offline  mirek
Messages: 14267
Registered: November 2005
Ultimate Member
[quote title=g00fy wrote on Sun, 03 December 2006 18:29][code]#include <CtrlLib/CtrlLib.h>

Quote:


	FileIn in("c:\\tmp\\common.xml");
	char * data = (char*)malloc(in.GetSize());

	in.GetAll(data,in.GetSize());

	XmlNode xml = ParseXML(data);
	
	free(data);
}




This is very non-U++ code Smile U++ is designed to avoid most resource management issues.

Better:

XmlNode xml = ParseXML(LoadFile("c:\\tmp\\common.xml"));


Mirek
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: How to simulate keyboard (and without focus)?
Next Topic: How to catch keyboard - on a console application?
Goto Forum:
  


Current Time: Mon Aug 18 00:42:19 CEST 2025

Total time taken to generate the page: 0.05239 seconds