将c++ dll导入windows手机项目 [英] import c++ dll to windows phone project

查看:27
本文介绍了将c++ dll导入windows手机项目的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是 Windows 手机开发的新手,我有一个问题,我不知道如何解决......

I'm new on windows phone developement and i have one problem that i don't know how to resolve....

问题是......

我有一个 C++ 项目,我用 Visual C++ 2010 编译了这个项目,这创建了一个带有编译代码的 dll...

i have a c++ project that i had complided with visual c++ 2010 and this create one dll with code compiled...

所以我知道 C# 会导入 dll 库,但是当我添加引用时,会出现此错误无法检索程序集全名"参数名称:AssemblyPath",我不知道这意味着什么...

so i know that C# import dll libraries but when i add refrences it's make this error "Unable to retrieve assembly fullname ""Parameter name: AssemblyPath" and i dont kown what it means...

我在谷歌上搜索,我找到了一种使用 DllImport 手动导入 c++ dll 并调用外部方法的方法......这会导致一个错误,因为它没有找到 dll 位置......这是因为 wp7 不支持 C++???

I searched on google and i found one method to import c++ dll manualy with DllImport and calling a external method... that causes one error because it's dont find the dll location... it's happens because wp7 don't suport C++???

谢谢你的帮助

推荐答案

既不支持 P/Invoke 也不支持 C++/CLI,只支持托管用户代码.请参阅 social.msdn.

Neither P/Invoke nor C++/CLI is supported, only managed user code. See social.msdn.

这篇关于将c++ dll导入windows手机项目的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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