aaApi_SaveDocumentDlg2() function produce "Not found" message box

My goal is to try to have the same functionality as the usual Microsoft Windows "Save As" common dialog.

So, I use this aaApi_SaveDocumentDlg2 function.

But, each time I press "Save" button, I get a "Not found" message box.

I've not found any explanation relative to this error.

So, could you help, please ?

Thank you.