05-07-2024, 02:50 AM
For some time now I have been using the following for dialog box calls from the .DLL MSDN library:
Although I was unaware they are supported within QB64 as such:
My real question is if the box call can return filenames, how do I get a name of a folder instead!?
Thanks, Erik.
Code: (Select All)
' dialog box
If VarX = -1 Then
Result = GetOpenFileNameA&&(OpenCall) ' Do Open File dialog call.
End If
If VarX = -2 Then
Result = GetSaveFileNameA&&(OpenCall) ' Do Save File dialog call.
End If
Code: (Select All)
Midi$ = _OpenFileDialog$("Open File", "", "*.mid ", "Midi files", 0)
If _MessageBox("MidiPlay", "Load: " + Midi$, "yesno", "question") = 0 Then Color 7: End
_MessageBox "MidiPlay", "Press <enter> to quit: ", "info"
Thanks, Erik.