locked
Add reference to a C++ WRL Class Library project with VS2013

    Question

  • Using Visual Studio 2013, I have downloaded the WRL Class Library project template and tried to use it.

    I create a simple C++ WRL class library. I upgrade to Windows 8.1 toolset. I create a basic C# store app.

    I build the solution. It is ok.

    I try to add the reference from the C++ component to the CS Xaml app. It fails. The message box is "A reference to 'MyComponent' could not be added".

    I have just created projects from scratch...


    Christophe Pichaud

    Sunday, January 19, 2014 12:04 PM

Answers

  • I have added the project option Linker -> Generate Windows Metadata to TRUE and it works !

    resolved !


    Christophe Pichaud

    Sunday, January 19, 2014 4:37 PM

All replies

  • I can add the reference to the winmd file but the c# xaml app does not work...

    Exception is Requested Windows Runtime type 'Library1.WinRTClass' is not registered.

    Any help ?


    Christophe Pichaud

    Sunday, January 19, 2014 3:27 PM
  • I have added the project option Linker -> Generate Windows Metadata to TRUE and it works !

    resolved !


    Christophe Pichaud

    Sunday, January 19, 2014 4:37 PM