Subj : DTR Output on COM port To : borland.public.cpp.borlandcpp From : Jack Sawatzky Date : Mon Jul 25 2005 01:43 pm I am trying to control the DTR output. The following code does not generate any errors, but it doesn't do anything else either; pin 6 on the RS232 remains stubbornly at 0 volts. hcom=CreateFile("COM2", GENERIC_READ | GENERIC_WRITE, 0, NULL, OPEN_EXISTING, NULL, NULL); GetCommState(hcom, &dcb ); dcb.fDtrControl= DTR_CONTROL_ENABLE; SetCommState( hcom, &dcb ); EscapeCommFunction(hcom,SETDTR); Can you tell me what I am doing wrong? Thanks. .