locked
"Platform" : a namespace with this name does not exits RRS feed

  • Question

  • using namespace Platform; in a DLL(windows Store Apps) project occur this error "Platform" : a namespace with this name does not exits"  why? But in the External Dependencies include the "platform.winmd" item.

    Thursday, December 20, 2012 4:37 AM

Answers

  • The Visual C++ DLL project is for code that doesn't use types in Platform. It doesn't have the /ZW compiler switch, etc. You can use that DLL from a Windows Store app written in C++/CX, but the DLL itself cannot use C++/CX. To make a DLL that uses Platform types (and that can be called from a Windows Store app written in C#, VB or JavaScript as well as C++), use the Windows Runtime Component project type. For more info, see http://msdnstage/en-us/library/windows/apps/hh699881.aspx.

    • Proposed as answer by Jesse Jiang Monday, December 24, 2012 5:52 AM
    • Marked as answer by Jesse Jiang Wednesday, December 26, 2012 2:25 AM
    Thursday, December 20, 2012 11:26 PM