While we appreciate comments from our users, please follow our posting guidelines. Have you tried the Cyotek Forums for support from Cyotek and the community?

Styling with Markdown is supported

Original Comment


Richard Moss

# Reply

As Ghostscript is a traditional Win32 DLL, in order to use it from .NET you have to use something called platform invoke. If you check the source code for this article, in the NativeMethods.cs file are a bunch of declarations decorated with the DllImport attribute - these say which DLL to use, in this case gsdll32.dll. Assuming that the 32bit and 64bit versions are identical (I have no idea myself), then simply replacing all those occurrences with the 64bit DLL name will be enough. You would also need to ensure that your client application is set to run in 64bit mode, otherwise it probably won't work.

If you need more help with p/invoke, you can refer to the MSDN article I linked at the start of this comment.

Richard Moss