void Cmy3DScanMFCDlg::dlpConnected()
{
if (DLPC350_USB_IsConnected() == 1)return;

if (DLPC350_USB_Open() == 0);
else
{
MessageBox(_T("连接投影仪失败"));
return;
}


if (DLPC350_USB_IsConnected() == 1)
{
DLPC350_SetMode(false);

}
else
{
MessageBox(_T("链接投影仪失败"));
return;
}

DLPC350_SetLedEnables(0, 1, 1, 1);
DLPC350_SetLEDPWMInvert(1);
DLPC350_SetLedCurrents(30, 30, 30);//30 30 30
DLPC350_LoadImageIndex(0);

}

void Cmy3DScanMFCDlg::OnBnClickedButton1()//连接投影仪
{
AfxBeginThread(ChildThread2, (LPVOID)this);
}