Hi
I have some files in one of the location and wanted to open through plugin
I have a piece of code which does not throw any error nor opens the document
I get the message "Before" and "After"
i would like to know where am i going wrong
Code below:
const ASUnicode *s = (ASUnicode *) "C:\\test.ai"; AIColorModel colorModel = kAIUnknownColorModel; ai::FilePath path; path.Set(ai::UnicodeString(s),
false); ActionDialogStatus dialogStatus = kDialogNone; AIBoolean forceCopy=
false; sADMBasic->MessageAlert("Before");
error = sAIDocumentList->Open(path, colorModel, dialogStatus, forceCopy, &document); sADMBasic->MessageAlert("After") Experts, Please help me Thanks Srinivas
hi
Thanks for the quick reply,
i tried using that but it resulted in compilation error
const ASUnicode *s = (ASUnicode *) "C:\\test.ai"; ai::FilePath path(s,true);
Error 5 error C2664: 'ai::FilePath::FilePath(const ai::UnicodeString &,bool)' : cannot convert parameter 1 from 'const ASUnicode *' to 'const ai::UnicodeString &'
Thanks
Srinivas
North America
Europe, Middle East and Africa
Asia Pacific