// VS2010
//GUI
//USB读写线程
UINT XferOut( LPVOID params ) //线程函数(PC-->FPGA)
{
//AllocConsole();
CUSBBulkTransferDlg *dlg= (CUSBBulkTransferDlg*) params;
OVERLAPPED outOvLap;
bool success;
//传文件内容到FPGA
CString strPath = dlg->m_PCStr;
int nLength = strPath.GetLength();
int nBytes = WideCharToMultiByte(CP_ACP,0,strPath,nLength,NULL,0,NULL,NULL);
char* OutBuffer = new char[ nBytes + 1];
memset(OutBuffer,0,nLength + 1);
WideCharToMultiByte(CP_OEMCP, 0, strPath, nLength, OutBuffer, nBytes, NULL, NULL);
OutBuffer[nBytes] = 0;
UCHAR *outContext;
LONG length=2