Failure to load Amyuni PDF Creactor ActiveX control with DEP

This forum contains a series of Technical Newsletters designed to share with our customers valuable information about implementing or using our products.
Post Reply
Devteam
Posts: 119
Joined: Fri Oct 14 2005
Location: Montreal
Contact:

Failure to load Amyuni PDF Creactor ActiveX control with DEP

Post by Devteam »

This post addresses an issue that may have occurred or may occur when using the PDFCreactiveX.dll that hosts the PDFCreator ActiveX control from a .Net application that is built with the C# compiler in Visual Studio 2008 and the .NET 3.5 or with the C# compiler in Visual Studio 2005 after the .NET 2.0 SP1 is installed.

On Windows Vista (or a later OS version) the DEP, Data Execution Prevention, is by default turned on, and this might cause your application to fail to load the PDFCreaciveX.dll. The error message that is given in the exception does not really describe the reason for the exception however. The message may be something like this "Unable to get window handle for the PDFCreator control, windowless ActiveX controls are not supported." The message is misleading.

The MSDN blog post http://blogs.msdn.com/ed_maurer/archive ... piler.aspx described the and offers details on how to resolve the issue for users who have had an ActiveX control they have been using and suddenly were no longer able to use it after updating their system or upgrading to VS 2008.

Keywords:
DEP, Data Excecution Prevention, IMAGE_DLLCHARACTERISTICS_NX_COMPAT, NXCOMPAT, .NET 2.0 SP1, .NET 3.5, VS 2005, VS 2008, Vista, "Unable to get window handle for the control, windowless ActiveX controls are not supported."
Amyuni Development Team

Efficient and accurate conversion to PDF, XPS, PDF/A and more. Free trials at - https://www.amyuni.com
Post Reply