WinRT component to use existing COM component DLL RRS feed

  • Question

  • Hi,

    I was told to call customized COM component in a register free DLL way, and tried to do so, but still failed. What I was doing is to use LoadPackagedLibrary to load COM dll and use GetProcAddress to get "DllGetClassObject" then use it to create instance.

    Till this point, I was able to get dll handle and create instance to my interface, however, when I try to call method of the interface, it gives me an invalid memory access exception.

    Is there any limitation to access COM interface from WinRT? or any SDK sample can be a reference? Seems this kind of code re-use are not so easy. Did Microsoft ever test this kind of scenario or just think all developers will write new codes from scratch?


    any idea?

    Wednesday, January 18, 2012 8:26 AM