locked
Windows store app how to load a DLL in local directory or the SDcard RRS feed

  • Question

  • The DLL is notpackaged together with APP, but by APP download from our company's Web site, and then placed the DLL in SDcard or a local directory.(DLL不是和APP一起打包,而是通过APP从公司网站上下载了相应的DLL然后放在SD卡中或APP本地目录中。)

    Question(问题)

    1、Windows store APP how to dynamically load a dll in a directory, and then call the interface of DLL?(APP如何能动态的加载并调用某一个目录中的DLL呢?)

    2、How to manually push a DLL into the phone?(如何手动把DLL放到手机中?)

    Can you share your code of a Demo?


    • Edited by oneonce Saturday, February 28, 2015 3:26 AM error
    Saturday, February 28, 2015 3:22 AM

Answers

  • We do have such a demand:

    APP Test against many different devices, each device provides several  DLLs for APP to perform different tests, However, to the APP DLL interface is the same(such as: start()/end()...).

    To test a type of device, user need to download DLLs of the device from our website, the only way to support for test a device. When users download the DLLs for a device, then they can select the device for testingAt this time ,we can know the name of the DLLs   and load them.

    We support hundreds of devices, each device has a number of DLL files!!!

    we also do it on android and iOS.

    If can not achieve the requirements, we may have to give up the windows platform


    • Edited by oneonce Monday, March 2, 2015 8:43 AM
    • Marked as answer by oneonce Wednesday, September 13, 2017 7:36 AM
    Monday, March 2, 2015 1:20 AM

All replies

  • This violates so many rules, I think you should review your approach to the problem.

    If you want change how your program runs, consider a scripting engine. still the functions should obey the sandbox rules

    Saturday, February 28, 2015 1:10 PM
  • Windows Store Apps can not dynamically load DLLs that are not deployed as part of their application package. There is no workaround for this.

    If you need to enable functionality later on you could either add it as an App Update that is then deployed to the device or you could use In-App-Purchases to unlock it only for users that pay for the extra features - it will still have to be part of the original Application Package though.

    Saturday, February 28, 2015 6:38 PM
  • We do have such a demand:

    APP Test against many different devices, each device provides several  DLLs for APP to perform different tests, However, to the APP DLL interface is the same(such as: start()/end()...).

    To test a type of device, user need to download DLLs of the device from our website, the only way to support for test a device. When users download the DLLs for a device, then they can select the device for testingAt this time ,we can know the name of the DLLs   and load them.

    We support hundreds of devices, each device has a number of DLL files!!!

    we also do it on android and iOS.

    If can not achieve the requirements, we may have to give up the windows platform


    • Edited by oneonce Monday, March 2, 2015 8:43 AM
    • Marked as answer by oneonce Wednesday, September 13, 2017 7:36 AM
    Monday, March 2, 2015 1:20 AM
  • Are you working for a device manufacturer or a network carrier? It's possible that in those cases OEM support could help you in achieving that (you'd have to go via your Microsoft contact in that case).

    As a third party developer with no such affiliation it is not possible to support this scenario.

    Monday, March 2, 2015 8:59 AM