none
WinRT组件 传递Windows::Foundation::Collections::IVector<T> RRS feed

  • 问题

  • 大家好,

    关于在WinRT组件的公有成员中包含Windows::Foundation::Collections::IVector<T> 的传递,大家有什么思路吗?

    我现在的代码片段如下:

    namespace  MyDevice {

    public value struct ADDEVICE_CHIP_INFO
    {
    Platform::String^ ChipDesc;  // Contains description of chip. 
    Windows::Foundation::Collections::IVector<Platform::String^> ^VoltageList; // Contains information about supporting input voltage list. 

    };

         public ref class ADDevice sealed

    {

                    

      private:
                    String^ m_Id;
    ADDEVICE_CHIP_INFO m_ChipInfo;
                    ComPtr<IDeviceIoControl> m_DeviceIoControl;              

    ADDevice(__in IDeviceIoControl* DeviceControl, __in String^ Id);
                    ~ ADDevice ();

     public:

            static String^ GetDeviceSelector();

            static ADDevice^ FromId(__in String^ InterfacePath);

             property ADDEVICE_CHIP_INFO ChipInfo       
    {
    ADDEVICE_CHIP_INFO get();  //return the struct which contain the information of the device 

    }

    }

     //other classed

       }

    当编译的时候提示错误

     error C3992:"VoltageList":Singnature of public member contains invalid type:Windows::Foundation::Collections::IVector<T> ^

    希望大家能给我一点提示

    2013年1月29日 2:53

答案

全部回复