I am using the function aaApi_DocumentSelectDlg to select a document and projectwise and while it is returning the project id and document id, the filename is not returned in pptstrFilename[0] when using the following code and no error is returned:
AAOPENDOCSDLG2_PARAM param = {0};
WCHAR sFilename[MAXFILENAMELEN] = L"";
param.ulMask |= AAOPENDLG2_MASK_FLAGS|AAOPENDLG2_MASK_TITLE|AAOPENDLG2_MASK_PROJECTID| AAOPENDLG2_MASK_DOCUMENTID|AAOPENDLG2_MASK_FILENAME | AAOPENDLG2_MASK_START_PROJ;
param.ulFlags = AAOPENDLG2_SINGLE_SELECTION | AAOPENDLG2_GET_IDS_ONLY | AAOPENDLG2_HIDEREADONLY | AAOPENDLG2_NO_USE_LASTPROJ | AAOPENDLG2_NO_CHANGE_LASTPROJ;
param.lStartProjectId = scopeDocStartID;
param.lpctstrTitle = _T("Select Scope Document to Move");
if (aaApi_DocumentSelectDlg (¶m) == IDOK)
{
wcsncpy_s (sFilename, param.pptstrFileName[0], ARRAY_LENGTH(sFilename));
aaApi_Free (param.pptstrFileName);
//...
}
----------------------------------------------
Any ideas why the filename isn't coming back?
Thanks,
Stephanie