PDFdev is a service provided by PDFzone.com | http://www.pdfzone.com _____________________________________________________________
Mikael, There is a new parameter in the defines for an Acrobat 6.0 SDK project, ACRO_SDK_LEVEL. It is set in the command line parameters for the compile. If you set it as ACRO_SDK_LEVEL = 0x00050000, and include the AVCompat.cpp file in your project, the plug-in will compile with Acrobat 5.0 calls and data structures, and it will work with both Acrobat 5.0 and 6.0. Thom Parker Windjack Solutions www.windjack.com -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Public Sent: Tuesday, November 04, 2003 6:56 AM To: PDF Zone Subject: [PDFdev] Problem with an Acrobat 5.0 plug-In in Acrobat 6.0 (to be continued) PDFdev is a service provided by PDFzone.com | http://www.pdfzone.com _____________________________________________________________ Hi, To be continued from my previous message and my new tests following Aandi's answer... I made a plugin with SDK v5 which replace the AVDocOpenFromFileWithParams built-in method. This method changed from, in SDK v5 : AVDoc AVDocOpenFromFileWithParams(ASPathName pathName , ASFileSys fileSys , char* tempTitle // A char* type , AVDocOpenParams params); to, in SDK v6 : AVDoc AVDocOpenFromFileWithParams(ASPathName pathName , ASFileSys fileSys , const ASText tempTitle // Here is the difference , AVDocOpenParams params); This plug-in, whatever the replacing method, compiled with Acrobat SDK v5 does not work with Acrobat v6 PRO (and Win XP SP1), in fact, it works but when Acrobat unloads, it doesn't shut down and stays in the background taking near 100% CPU resources. All other attempts to re-run Acrobat re-runs it as a new process, leaving the other active. If I compile with Acrobat SDK v6 using the first form, I have a type-checking error in the REPLACE method, which is normal, because it waits for an ASText. If I compile with Acrobat SDK v6 using the second form, and with compatibility with v5 (in commenting v6 specific HFT entries), when I launch Acrobat 5.0, I have an error message saying "Can not load, attempt to replace a not replaceable selector", which is normal, because this callback's definition changed. Does this mean that all plug-ins written with Acrobat SDK v5 replacing this method will fail in Acrobat v6 ? And does this mean that I have to make 2 different plug-ins, one for Acrobat v5 and the other for Acrobat v6 ? Has anyone an answer or the same experience ? Thanks. Mikael LAUSSEUR Aalto Consultant FRANCE To change your subscription: http://www.pdfzone.com/discussions/lists-pdfdev.html To change your subscription: http://www.pdfzone.com/discussions/lists-pdfdev.html
