Answered by:
How to distribute WinRT component and reference the WinRT dll or componenty

Question
-
Hi guys:
Thursday, January 24, 2013 7:15 AM
Answers
-
Hi Wuxianghou,
I think you can click the Browser button in your Project's Add Reference window and pick the winmd file to consume this component.
Feel free to let me know if you have any questions.
Best regards,
Min Zhu
MSDN Community Support | Feedback to us
Develop and promote your apps in Windows Store
Please remember to mark the replies as answers if they help and unmark them if they provide no help.- Marked as answer by wuxianghou Tuesday, January 29, 2013 2:27 AM
Friday, January 25, 2013 2:51 AMModerator
All replies
-
Hi Wuxianghou,
I think you can click the Browser button in your Project's Add Reference window and pick the winmd file to consume this component.
Feel free to let me know if you have any questions.
Best regards,
Min Zhu
MSDN Community Support | Feedback to us
Develop and promote your apps in Windows Store
Please remember to mark the replies as answers if they help and unmark them if they provide no help.- Marked as answer by wuxianghou Tuesday, January 29, 2013 2:27 AM
Friday, January 25, 2013 2:51 AMModerator -
HI Min Zhu,
i got it.
i just copy the winmd file and Dll file to the C# project, and ada reference ,pick the winmd file to the C# project..
another question, about the pass Windows::Foundation::Collections::IVector from WinRT conponent to the Windows store app.
in my c++ WinRT conponent i just want to pass Windows::Foundation::Collections::IVector to the caller. the following is a fragment of my code
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
}
when i compile the project i got an error C3992:"VoltageList":Singnature of public member contains invalid type:Windows::Foundation::Collections::IVector<T> ^
how can i fix it,please give me some hint..thank you
Tuesday, January 29, 2013 2:43 AM -
Hi Wuxianghou,
Could you please open a new thread for the new question at http://social.msdn.microsoft.com/Forums/en-GB/winappswithnativecode/threads?
It will help your question get better answered and be beneficial to other community members as well.
Best regards,
Min Zhu
MSDN Community Support | Feedback to us
Develop and promote your apps in Windows Store
Please remember to mark the replies as answers if they help and unmark them if they provide no help.Tuesday, January 29, 2013 2:56 AMModerator