How to use C ++ dll in Windows Phone 8.1 XAML Application in C ++ Runtime Component
I want to use a C ++ dll (compiled for arm, x86) in my Windows phone C # 8.1 XAML visual studio project.
I created a C ++ runtime component to interact with my C ++ code. This code needs a pre-compiled dll. I added my lib file to my project settings. Compilation works fine. If I run my application with Windows Phone 8.1 emulator, I get:
The specified module could not be found. (Exception from HRESULT: 0x8007007E)
My Visual Studio structure:
- FROM#
- Windows Phone Project
- Windows project
- Generic XAML
- Managed C ++
- RuntimeComponent Windows Phone
- RuntimeComponent Windows
- Generic C ++ Code (dll used here)
Things I've tried:
- I dragged the dll into my C ++ project and changed the content properties to true.
- I dragged the dll into my c # project and enabled the ability to copy the dll to the output directory
So how can I use the .lib / .dll library in a C ++ Runtime Component Project?
Additional Information:
- I want to use Angle (which allows OpenGL code as DirectX on Windows / Windows Phone using Microsoft fork: https://github.com/MSOpenTech/angle/tree/future-dev )
- There are templates for Windows Phone 8.1 for pure C ++ based on libEGL.lib / dll and libGLES.lib / dll (manually compiled for arm, win32)
- But I want to use a C # project with a Running Time C ++ component to be able to use third party libraries like the adob ad platform for Windows Phone.
- I found out that cocos2d uses Angle, but I didn't understand how they did it ( https://github.com/cocos2d/cocos2d-x/tree/v3/templates/cpp-template-default/proj.wp8-xaml )
+3
source to share