Linking Static Windows Runtime Component libs and Win32 Static libs


  • Hi,

    I have some "n" number of legacy "C" Win32 Static libs. These libs are statically linked with another set  of C++ Win32 libs and finally turning them as one single DLL which is shiped to cleint.

    Inorder to support ARM processors i have planned to port code as WINRT compliant.

    I have identified that only one static "C" lib underlying need to be ported to WinRT which i have done.

    I have compiled all other libs with ARM configuration ( meaning , chaning some preprocessors to _WIN_RT_DLL and some references to WIndows Runtime libaries which comes automatically with VS2012)

    Now, when i link these libs as mentioned above and then try to access Final DLL from the metro app i get an error saying Access Denied.

    Is that procedure which i fallowed is allowed ?

    Thanks And Regards


    Thursday, November 29, 2012 7:29 AM

All replies

  • May be your final dll is dependent on something else which is not found or incompatible

    Please check by using Dependency Walker   whether every component is available and compatible.

    • Proposed as answer by Jesse Jiang Tuesday, December 4, 2012 10:54 AM
    Thursday, November 29, 2012 10:39 AM
  • Hi Mokarrom!

    I does not have any other dependencies , I have already used Dependency Walker.

    By the way ,  is the above compilation way I mentioned is valid  ?

    Thanks And Regards,

    Sravan Vurapalli

    Thursday, November 29, 2012 12:09 PM
  • Where is this DLL located?

    Are you using implicit loading or explicit loading via LoadPackagedLibrary?

    Thursday, November 29, 2012 8:32 PM
  • Hi Chuck!

    Dependent dll's are located in common folder and that path is added as Addition Library Path.

    I am using implicit loading.

    Thanks And Regards,
    Sravan Vurapalli

    Monday, December 3, 2012 6:33 AM