• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

How do I use ADM's StandardPutFileDialog?

New Here ,
Jun 04, 2007 Jun 04, 2007

Copy link to clipboard

Copied

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?
TOPICS
SDK

Views

1.6K

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Adobe Employee ,
Jun 22, 2007 Jun 22, 2007

Copy link to clipboard

Copied

Does the suite get successfully acquired? What outResult do you get?

NOTE: ADM is not supported in AE CS3.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Jun 27, 2007 Jun 27, 2007

Copy link to clipboard

Copied

outResult after the dialog is only an empty string.

The problem in my code is that my declaration of ADMBasicSuite8 is that it is declared a local variable. I set it as global and the dialog appeared. Thanks anyway for your help brooce.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Jul 23, 2007 Jul 23, 2007

Copy link to clipboard

Copied

LATEST
http://www.haohecaiwu.cn

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines