|
-
November 14th, 2011, 10:00 AM
#1
Save/load file windows
Afternoon everyone.
Basically, I want my program to bring up the generic windows save/load boxes. And i have no idea really how to go about doing it.
The code below is whats used to create the file that i want to save, its pretty long, so i cut out bits that you dont really need to know:
Code:
ofstream saveFile;
saveFile.open("Save.mbl"); //open file
saveFile << polyphony << endl;
for(int i = 0; i < polyphony; i++) //for each voice
{
saveFile << voices[i].automata->GetRule() << endl; //write out the CA rule
saveFile << voices[i].parameters[47].value << endl;
//etc etc - write out a bunch of boring stuff
}
for(int i=0; i<polyphony; i++)
{
//and some more numbers
}
saveFile.close();
What i then need to happen, is the standard dialog box to come up, and for the user to choose where to save the file.
Thanks in advance for any help with this.
-M
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|