kernel32.dll is missing in Windows Phone 8.1 app thru NHunspell

删除回忆录丶 提交于 2019-12-13 21:05:22

问题


I'm trying to use NHunspell library in my windows phone app (available thru NuGet package). In the Hunspell constructor i'm getting this error: Additional information: Unable to load DLL 'kernel32.dll': The specified module could not be found.

Does anyone know how why it happens and how can i fix it? i'm running my app in the emulator, maybe this cause the issue?

The same code works fine in a simple desktop app, so i guess it is something with the project refrences or stuff like that...

And if there's someone who is familiar with this spellcheck lib and WP or in general, i'll appricaite his help.

Please help! Thanks in advance!


回答1:


In fact NHunspell uses Hunspell. Hunspell is not a native windows component as mentioned, it is a C coded spell checker library. If it is possible to use native compiled libraries on Windows Phone, someone could compile Hunspell for it, so that this can be deployed to the Phone. This would also be nice on Android and iOS in conjunction with Xamarin. Currently there is no native Hunspell library for windows phone. But this should be possible with Windows Phone 8 native support.

I have already laid the foundation for this cross platform compilation by separating the NHunspell and native Hunspell projects in the latest NHunspell version. But I'm targeting Linux x86 with this step. If someone is good at cross platform development, maybe this could be done for the mobile devices too.

This blog post describes the new build process where additional native builds can be integrated: Building NHunspell with PowerShell Build Tools



来源:https://stackoverflow.com/questions/27247507/kernel32-dll-is-missing-in-windows-phone-8-1-app-thru-nhunspell

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