![](/img/trans.png)
[英]How to debug C++ code in a Windows Phone (8) Runtime Component or C++ DLL in VS 2013
[英]How to use a C++ dll in Windows Phone 8.1 XAML App within C++ Runtime Component
我想在我的C#windows phone 8.1 XAML visual studio項目中使用C ++ dll(為arm編譯,x86)。
我創建了一個C ++運行時組件來與我的C ++代碼進行交互。 此代碼需要預編譯的dll。 我將我的lib文件添加到我的項目設置中。 編譯運行正常。 如果我使用Windows Phone 8.1模擬器啟動我的應用程序,我得到:
The specified module could not be found. (Exception from HRESULT: 0x8007007E)
我的Visual Studio項目結構:
我嘗試過的事情:
那么,我如何在C ++運行時組件項目中使用.lib / .dll庫?
更多細節:
我設法讓它運作起來。
您必須將dll導入C#項目。 重要的是,dll位於C#項目的根目錄中,並且: 不會激活copy to output directory
。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.