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 » Community » Newbie corner » Save and file extension
Save and file extension [message #40665] Thu, 29 August 2013 11:10 Go to previous message
idkfa46 is currently offline  idkfa46
Messages: 155
Registered: December 2011
Experienced Member
Hi all,
someone can give me an example for saving with xmlize and define the file extension and maybe the icon too ?


FileSel fs;
String filename;

void xxx::Save()
{
    if(IsEmpty(filename)) { SaveAs(); return; }

    if(!StoreAsXMLFile(*this, "STD", filename + ".ext"))
		Exclamation("Unable to open " + filename);
}

void xxx::SaveAs()
{
    if(!fs.ExecuteSaveAs()) return;
    filename = fs;
    Save();
}



Regards,
Matteo
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Painter 2.0 Path definition: mix of cubics and quadratics
Next Topic: Help needed with Convert class
Goto Forum:
  


Current Time: Mon May 13 20:44:58 CEST 2024

Total time taken to generate the page: 0.02099 seconds