Quantcast
Channel: Adobe Community : Unanswered Discussions - Acrobat
Viewing all articles
Browse latest Browse all 73766

Setting ASPathName Error

$
0
0

I am intercepting the open dialogs return value for inserting documents where it tries to set

 

ASPathName** outASPathNames

 

and setting it myself like so

 

     char *filePath = "/C/test.jpg";

     ASPathName asPathName = ASFileSysCreatePathFromDIPath(fileSys, filePath, NULL)

     ASFile asFile;

     ASFileSysOpenFile(fileSys, asPathName, ASFILE_READ, (ASFile *)&asFile);

      *outASPathNames = &asPathName;

 

It appears to be a correct ASPathName as I can use it to open documents fine using the below code, yet as a return value for the dialog it does not work.

 

AVDoc doc = AVDocOpenFromASFileWithParams(asFile, 0, 0);

 

When the dialog method returns I see the following error message on my screen

 

error2.JPG

I have no idea where to go from here, can anyone shed any light on this?


Viewing all articles
Browse latest Browse all 73766

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>