1. void GetStreamerDevice()
void GetStreamerDevice()
{
StartBtn->Enabled = false;
EndPointsBox->Items->Clear();
EndPointsBox->Text = "";
USBDevice = new CCyUSBDevice((HANDLE)this->Handle,CYUSBDRV_GUID,true);
if (USBDevice == NULL) return;
int n = USBDevice->DeviceCount();
// Walk through all devices looking for VENDOR_ID/PRODUCT_ID
for (int i=0; i<n; i++)
{
if ((USBDevice->VendorID == VENDOR_ID) && (USBDevice->ProductID == PRODUCT_ID))
break;
USBDevice->Open(i);
}
if ((USBDevice->VendorID == VENDOR_ID) && (USBDevice->ProductID ==