使用xaml托管代码中的静态库或动态库。 [英] use static library or dynamic library from xaml managed code.
问题描述
您好,
我正在使用xaml c#创建一个Windows Phone应用程序。我还使用c ++静态库和c ++本机dll创建了2个新项目。我可以直接从我的项目中使用这两个项目的功能,或者我需要创建 一个windows
运行时。请帮我举例。
I am creating a windows phone application using xaml c#. I have also created 2 new project using c++ static library and c++ native dll. Can I use the function of those 2 project directly from my project or I need to create a windows runtime. Please help me with example.
谢谢,
Syed Jamil。
Syed Jamil.
jamil
推荐答案
您好Jamil,
Hi Jamil,
您将需要创建一个可移植的类库,如果您打算在多个平台上共享您的项目。 如果您只想将它用于手机,那么只需使用您要定位的语言创建一个Windows Phone类库。 如果您希望
跨越语言边界,例如从C#项目调用c ++代码,则可以创建Windows Phone运行时组件。 有关运行时组件的更多信息,请参阅此处:
http://msdn.microsoft.com/en-us/library/windowsphone/develop/jj714080(v=vs.105).aspx
You will want to create a portable class library if you intent to share your project across multiple platforms. If you want to use this just for phone then just create a Windows Phone Class library in the language you are targeting. If you want to cross language boundaries, like call c++ code from a C# project, you would create a Windows Phone Runtime component. See this for more info on runtime components: http://msdn.microsoft.com/en-us/library/windowsphone/develop/jj714080(v=vs.105).aspx
< a href ="http://msdn.microsoft.com/en-us/library/windowsphone/develop/jj714080(v=vs.105).aspx">
这篇关于使用xaml托管代码中的静态库或动态库。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!