This is my code:
static ADMPlatformFileTypesSpecification3 csvFilter = {
"Comma Separated Value Files (*.csv)\0"
"*.csv;\0"
"All Files\0"
"*.*\0"
"\0"
};
const char* inMessage = "Export CVS As\0";
char* inStartingFile = "/0";
SPPlatformFileSpecification* outResult;
const SPPlatformFileSpecification inStartingDirectory;
ADMBasicSuite8 *sADMBasicSuite;
err = S_sp_basic_suiteP->AcquireSuite(kADMBasicSuite, kADMBasicSuiteVersion2, (const void**)&sADMBasicSuite);
if (!err) {
bool status = false;
status = sADMBasicSuite->StandardPutFileDialog(inMessage, &csvFilter, &inStartingDirectory, inStartingFile, outResult);
S_sp_basic_suiteP->ReleaseSuite(kADMBasicSuite, kADMBasicSuiteVersion2);
}
The programs compiles fine, but the StandardPutFileDialog dialog does not appear. The program just runs through the commands without producing a dialog, and status's value becomes true after StandardPutFileDialog. What do I need to make the dialog appear?