msclr\lock.h compatibility RRS feed

  • Question

  • I am writing a metro style app in XAML and C++.

    and I try to use lock in a .cpp file.

    I included <msclr\lock.h> header file,

    but when I compile,

    it says 

    Error 5 error C1189: #error :  ERROR: msclr libraries are not compatible with /clr:oldSyntax

    anyone know why that happens and how to solve this issue?

    Thank you very much!

    Thursday, August 16, 2012 11:50 PM


All replies