Dear Ramon and others,
Thank you for valuable effort, the issue has solved, actually the change needed was PDSaveFull flag, with PDSaveCopy.
PDDocSave (myPDDoc, PDSaveCopy | PDSaveFull , nwFilePathName, ASGetDefaultFileSys () , NULL , NULL);
But as Ramon suggested, I am getting asked not to use CString and to use char arrays dynamically. I am actually getting confused that how to use dynamic allocation at every point, like below is a question for me.
Also can anyone suggest me will it be good to use string class of standard library.
char msg[100];
ASGetErrorString ( errCode, msg, 100);
Is it possible to know how long the error message will be. Please give some code which does this job dynamically.
Can anyone help me here please.
Thanking you & Waiting for Reply,
Safee.