locked
c++ runtime componet error "Public members signature contains a type of native" RRS feed

  • 问题

  • Such as struct A  is a array member of struct B

    typedeof value struct A_{

         unsigned long type;  //error 1

    }A

    value struct B{

       A  a[2];  //error 2

    }

    The error is "Public members signature contains a type of native" . the two structure is interface to called in c#!

    Why?

    Thanks!

    2013年1月21日 7:28

答案

  • Hi,

          You must use WinRT Common Type to define a pulice member in the WinRT componet.

         
    value struct A
    {
        uint64 type;
    };


    Thanks! Damon.Tian

    2013年1月21日 8:12