locked
Win 32 On Metro Mode of Windows 8

    Question

  • I have an C Static Library file for Capturing Video from Camera.I have Manged C++ wrapper for this library. I would like to know whether I can Develop an application for Metro Mode of Windows 8 to and use the Same Library for capturing the video or not.

     

     

     

    Thursday, October 20, 2011 3:00 PM

Answers

  • As David said, you wouldn't be able to use the managed C++ wrapper from C++/Cx, and whether you can use the unmanaged library depends on what calls it makes.

    You can find the list of multimedia API which are allowed in Metro style apps at http://msdn.microsoft.com/en-us/library/windows/apps/hh452756 .

    More information on the subset of Win32 and COM available to Metro style apps can be found at: http://msdn.microsoft.com/en-us/library/windows/apps/br205757%28v=VS.85%29.aspx

    • Marked as answer by chris_vr Friday, October 21, 2011 11:26 AM
    Thursday, October 20, 2011 4:54 PM
    Owner

All replies

  • I have an C Static Library file for Capturing Video from Camera.I have Manged C++ wrapper for this library. I would like to know whether I can Develop an application for Metro Mode of Windows 8 to and use the Same Library for capturing the video or not.
    First, I think you would have to consume your managed library from C#, because you cannot mix C++/CLI (managed) and C++/CX (WinRT) code.
     
    But you would also have to check that your managed code was not doing anything that is forbidden in WinRT.
     

    David Wilkinson | Visual C++ MVP
    Thursday, October 20, 2011 3:30 PM
  • As David said, you wouldn't be able to use the managed C++ wrapper from C++/Cx, and whether you can use the unmanaged library depends on what calls it makes.

    You can find the list of multimedia API which are allowed in Metro style apps at http://msdn.microsoft.com/en-us/library/windows/apps/hh452756 .

    More information on the subset of Win32 and COM available to Metro style apps can be found at: http://msdn.microsoft.com/en-us/library/windows/apps/br205757%28v=VS.85%29.aspx

    • Marked as answer by chris_vr Friday, October 21, 2011 11:26 AM
    Thursday, October 20, 2011 4:54 PM
    Owner