Access to USB Serial port

Hey everyone,

I have the Digi XBee Mesh Starter Kit with several XBee modules and two USB microcontroller boards and two RS232 microcontrollerboards. I have a problem accessing the USB Serial port. I wrote a little C routine to get access to the XBees. For the RS232 Board everything works perfectly fine. But I have problems with the USB boards. I have installed the driver and the boards work with the X-CTU software. But if I try to open the USB port I get an error.
I use the same command as for the RS232

hCOM=CreateFile(“\.\COM17”,GENERIC_READ|GENERIC_WRITE,0,NULL,OPEN_EXISTING,NULL,NULL);

Does anybody have an idea what’s wrong?

Thanks

what kind of error you receive?, give us the error.