import c++ dll to windows phone project

有些话、适合烂在心里 提交于 2019-12-30 10:37:29

问题


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

the problem is....

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

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

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++???

thanks for help me


回答1:


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




回答2:


3rd party WP7 apps may only comprise of managed code. C++ is also not a supported language, even in managed form, at this time.




回答3:


WP7 doesn't support c++. you would also probably need to recompile the c++ dll anyways, even if it was supported.



来源:https://stackoverflow.com/questions/4730774/import-c-dll-to-windows-phone-project

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