Hi,
So I am using the common_dialogs include made by someone on the blastbay forum which allows you t use open and save dialogs in bgt, but my code never runs. I will post a bit of my code, the actual code will bbe used for an application and it's rather long.
if(key_pressed(KEY_SPACE))
{
dlgsetup();
playfile.load(f);
}
void dlgsetup()
{
dlg.set_title("Open file");
dlg.set_path(DIRECTORY_MY_DOCUMENTS);
dlg.set_pattern("All files|*.wav;*.mp3;.*ogg|mp3 files|*.mp3|wav files|*.wav|ogg files|*.ogg",1);
dlg.set_type(SAVE_DIALOG);
f=dlg.show();
}
Can someone help me?
And by it won't run I mean bgt.exe it just stops responding when I run the program.
Pages 1