Yes, something like that. In fact, the expression ret == SQL_SUCCESS 'returns' a boolean (true if they are equals, false if they are different). The same with the || operator. Thus, the complete expression returns a boolean, which is stored in m_bIsConnected.
If I remember right, RS232 uses a voltage feed of +-12V. And I know, from my own experience, that an open connector can give any state, it depends how the hardware is designed.
The question is: Do you get antoher result when you have a negative voltage on the cts pin?
Maybe you can try with a real modem, if you set DTR high/active, then RTS, the modem should respond with setting CTS high/active.
Again, if I remember right, "high/active" really means a negative voltage on the pin in question. But I might be wrong here, so you'd better check that piece of information.
Alcohol. The cause of, and the solution to, all of life's problems - Homer Simpson
Am new to VC++.Am using list control(report type) to represent my data obtained from serial port.Am able to select the data in the list control but not able to copy. Should i need to write any code for copying data from control list.I don't want to copy the data to any other controls with in the project.What i need is to select the data in control list, press ctrl+c and copy the data to notepad/word.Please help me out.
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow Never mind - my own stupidity is the source of every "problem" - Mixture
I went through the link u have sent that doesn't matches with my requirement.First thing is am using control list box and am not having any button to copy.What i need is
1) Select the data in the control list by using mouse
2)copy by pressing ctrl+ C
3)pasting in a notepad or word document(outside the project).
From within the IDE, press Ctrl+R and select Accelerator from the list of types. Click the New button. Double-click the newly added accelerator item. Check the Ctrl checkbox. Type a C in the Key combobox. Press Enter. You should now have a Ctrl+C accelerator key. Check out the LoadAccelerators() function.
"A good athlete is the result of a good and worthy opponent." - David Crow
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
I would like my UDP server to send the data when the client connects; say at a rate of 100 msec.
But I can only get it working when the Server does a receive first (so the client has to do a send) then the Server does the send.
Can this be done? The server fails if I do not do the Receive and the client fails if I dont run the server first.