简体   繁体   中英

Windows Phone and ANSI C (not C++) library

Is there any way to write / include ANSI C written library to my Windows Phne 8 app project? I know it's possible with Windows Phone Runtime Component for C++ but here is my question, it is possible for ANSI C? The goal is cross-mobile library for Android, iOS and windows Phone

Microsoft has fixed the [DllImport] in WP 8.1. If you target WP 8.1, you can compile your ANSI C library into the DLL and invoke your DLL directly from the C# code, without any C++/CX component.

Update: Please note you must use visual studio to build that DLL. Also, remember the native code is always CPU-specific, which means you'll need separate x86 build for the emulator, and ARM build for testing on hardware devices, and for the store.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM