c# - Consuming a DLL(Universal Apps) from a WinRT Component -


i have c++ (native code) dll project developed ios , android. port c++ dll (universal apps) consumed c# universal store application. code isn't hw dependent.

as first step, before moving code, created small test solution follows:

  1. i created c++ dll (universal apps), mydll, has c++ add1(int, int) function.
  2. i created c++ winrt component (universal apps) has c++ add2(int, int) function.
  3. i created c# universal application, myapp, calls add2 calls add1.

compilation passes ok, when run myapp application crashes , report mydll wasn't loaded.

my questions are:

  1. is scenario described above possible? , if so, can problem causing myapp crash?
  2. is there better way me port ios/android c++ code consumed in c# universal application?

thx

1) hans, first guess you're not including dll in apps package. if it's not deployed in package isn't available loaded. since can't add reference dll you'll need add explicitly:

add files project, open files' properties in solution explorer window, , mark them content included in app package.

check out in appx dir after deploy.

2) that's easiest. include dll , pinvoke. either way you'll need make sure dll valid windows store apps


Comments

Popular posts from this blog

java - Oracle EBS .ClassNotFoundException: oracle.apps.fnd.formsClient.FormsLauncher.class ERROR -

c# - how to use buttonedit in devexpress gridcontrol -

nvd3.js - angularjs-nvd3-directives setting color in legend as well as in chart elements -