Load C library (gsdll32.dll) from Metro Style App c#

China☆狼群 提交于 2019-12-05 12:12:34

It is possible, but:

  • Was gsdll32.dll compiled against the WinRT SDK?
  • Does gsdll32.dll passes the App certification?
  • Did you include the dll in your package?

If the answer to any of those questions is "no", then your code will not work.

Build Ghostscript from source (PC version)
Microsoft Environment for WinRT

Ghostscript can be built in the form of a win32 DLL for use within a Windows Runtime application or Windows Runtime component. Building for WinRT requires use of Microsoft Visual Studio 2012. There is a solution file that can be loaded into VS 2012, in the directory winrt

The WinRT application or component should include iapi.h from gs/psi and link with gsdll32metro.lib from gs/debugbin or gs/releasebin. Also any app using ghostscript either directly or via a component should add gsdll32metro.dll as "content". This inclusion of the dll is necessary so that it will be packaged with the app. If one wishes to be able to run the debugger on ghostscript then gsdll32metro.pdb should also be added as content.

From the GhostScript 9.21 documentation

Yes, I do realize this question is half a decade old.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!