Add new comment

Hold on... You're using CDC descriptors? Then WINUSB will not work. If you can communicate with your device over TeraTerm then CDC is working correctly. All you have to do now is write an application that opens the COM port you are opening in TeraTerm and do whatever you need:

HANDLE hCOM = CreateFile(_T("COM7:"), ...
DCB dcb;
dcb.Baud = 115200
dcb.Parity = ... etc
SetCommState(hCOM, &dcb);

WriteFile(hCOM, L"some string", ...)
char szBuffer[1000];
ReadFile(hCOM, szBuffer, ...)

Note the above is pseudo code of course!