import c++ dll to windows phone project

2019-02-19 02:12发布

问题:

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.