通过NHunspell在Windows Phone 8.1应用中缺少kernel32.dll [英] kernel32.dll is missing in Windows Phone 8.1 app thru NHunspell

查看:97
本文介绍了通过NHunspell在Windows Phone 8.1应用中缺少kernel32.dll的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试在Windows Phone应用程序(可通过NuGet包获得)中使用NHunspell库. 在Hunspell构造函数中,我遇到此错误: 附加信息:无法加载DLL'kernel32.dll':找不到指定的模块.

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...

如果有人熟悉此拼写检查库和WP,或者总的来说,我会请他帮忙.

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

请帮助! 预先感谢!

推荐答案

实际上NHunspell使用的是Hunspell. Hunspell不是如上所述的本机Windows组件,它是C编码的拼写检查程序库.如果可以在Windows Phone上使用本机编译的库,则有人可以为其编译Hunspell,以便可以将其部署到Phone.结合Xamarin在Android和iOS上也不错.当前没有适用于Windows Phone的本地Hunspell库.但是,借助Windows Phone 8本机支持,这应该是可能的.

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.

我已经通过在最新的NHunspell版本中分离NHunspell和本地的Hunspell项目,为跨平台编译奠定了基础.但是,我打算通过此步骤针对Linux x86.如果有人擅长跨平台开发,那么也许也可以在移动设备上做到这一点.

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.

此博客文章描述了可以集成其他本机构建的新构建过程:使用PowerShell构建工具构建NHunspell

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

这篇关于通过NHunspell在Windows Phone 8.1应用中缺少kernel32.dll的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆