DLL for AnyCPU

Skip Navigation LinksHome  /  Support  /  Forums  /  DynamicPDF Viewer for .NET (v1)  /  DLL for AnyCPU

DynamicPDF Viewer for .NET (v1) Forum

 May 08 2017 3:48 AM
Hallo!

My company is using different ceTe Software Products (Merger, Rasterizer and PrintManager) over a couple of years now and i can say that we are really quite happy with it.

Recently we also purchased your DynamicPDF Viewer Component (v1.0.3) and now we need to embed the Control into a .NET 4.5 Client Application, that has to be built for "Any CPU".

Today, the Project Leader asked me for such a DLL (of the Viewing Component) that is built for "Any CPU", but i could only find DLLs for x86 and x64 (for the different .net versions).

So i would kindly ask if it is somehow possible to get a DynamicPDF Viewer DLL (v1.0.3 or higher) that is built for "Any CPU" (screenshot: http://i.imgur.com/QNuKn6i.png) ?

I am really looking forward to your response!

Kind regards,

Ludwig Blechinger
(Plasser & Theurer)
 May 08 2017 8:50 AM
Posted by a ceTe Software moderator
Hello Ludwig,

The DynamicPDF Viewer for .NET product has different DLL files for 32-bit and 64-bit CPU architectures. You will need to reference the respective DLL file as per the .NET framework version and platform target (x86 or x64) set to the application. You can refer to the documentation on referencing assembly here.

The DynamicPDF Viewer for .NET product do not have DLL files built for ‘ANY CPU” architecture. Compiling your application for 32-bit platform by referencing the respective 32-bit DLL file will make it work on both 32-bit and 64-bit machines.

Thanks,
ceTe Software Support Team.
 May 08 2017 10:45 AM
Thanks for your fast reply (as always) !

We finally found a way to build our project with "AnyCPU", by loading the required DLL for the current Platform (x86 / x64) manually into the Program at Startup.

Kind regards,

Ludwig
 Apr 09 2019 11:07 AM
Ludwig,

I know this is an older post but could I ask how you dynamically loading the DLL at program startup. I know how to determine if the program is running in 32/64 bit but haven't quite figured out the load process. Any help would be great.

- Don V.
 Apr 11 2019 10:13 AM
Posted by a ceTe Software moderator
Hello Don,
 
There is no option available in DynamicPDF Viewer for .NET product to load the respective DLL file as per the platform target set to the application. You can achieve your requirement using the Assembly Resolve event of your .NET class. You can refer to the documentation on the Assembly Resolve event on the Microsoft website here.
 
Thanks,
ceTe Software Support Team

All times are US Eastern Standard time. The time now is 1:42 AM.