SCENARIO:
I am creating a DLL project for Visual C ++ Direct X for Windows Store applications based on Visual Studio code sample for Visual Studio.
This should be a separate DLL project from my Windows Store application project, because I will use my XAML UserControl with Direct X renderer inside it both in the Windows 8 Metro application and in the Windows Phone version of the application.
PROBLEM:
I cannot reference a C ++ project in a C # Windows Store application project. Visual Studio refuses with the following words:
A reference to <project-name> could not be added.
I saw suggestions to compile a C ++ project using the / clr flag, but this is incompatible with:
- / ZW flag required by some API in the project
- header "wrl.h"
- many other command line flags in project settings
Thus, the / clr flag is not an option in this situation.
QUESTION:
How can I reference a C ++ project so that I can use my XAML Direct X rendering in a C # Windows Store App application project? Or is there a better alternative?
Thanks in advance.
source share