Click here to Skip to main content
15,892,537 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Draw on window Pin
Hamid_RT22-Aug-06 20:04
Hamid_RT22-Aug-06 20:04 
GeneralRe: Draw on window [modified] Pin
ramanand_bulusu22-Aug-06 20:32
ramanand_bulusu22-Aug-06 20:32 
GeneralRe: Draw on window Pin
Hamid_RT22-Aug-06 20:56
Hamid_RT22-Aug-06 20:56 
Questioncorrect height for header control Pin
Dave Calkins22-Aug-06 18:17
Dave Calkins22-Aug-06 18:17 
AnswerRe: correct height for header control Pin
Waldermort22-Aug-06 19:34
Waldermort22-Aug-06 19:34 
GeneralRe: correct height for header control Pin
Dave Calkins23-Aug-06 9:37
Dave Calkins23-Aug-06 9:37 
QuestionKnowing the serial port Plug/Unplug status Pin
VCSharp00722-Aug-06 18:13
VCSharp00722-Aug-06 18:13 
AnswerRe: Knowing the serial port Plug/Unplug status Pin
kakan22-Aug-06 19:48
professionalkakan22-Aug-06 19:48 
Hello.

There are status signals you can test, such as DSR (Data Set Ready) and CTS (Clear To Send) (Provided you did set RTS (Request To Send) high first).
If there are a device connectoed to the port, those staus signals should indicate the port is connected to a powered on device.
But in my experience, the status signals aren't 100% trustworthy when the serial port is unplugged. What's worse, it seems as their state depends on the hardware.

So the best way to find out, is to send some kind of status question to the device, then wait for an answer. If you get an answer, it's definately plugged in.

Alcohol. The cause of, and the solution to, all of life's problems - Homer Simpson

Questionhow to let CEdit SetFocus in a simple SDI program Pin
ikohl22-Aug-06 18:08
ikohl22-Aug-06 18:08 
AnswerRe: how to let CEdit SetFocus in a simple SDI program Pin
uday kiran janaswamy22-Aug-06 18:54
uday kiran janaswamy22-Aug-06 18:54 
Generalit's complex, only use SetFocus can't succeed Pin
ikohl22-Aug-06 19:32
ikohl22-Aug-06 19:32 
AnswerRe: how to let CEdit SetFocus in a simple SDI program Pin
_AnsHUMAN_ 22-Aug-06 19:11
_AnsHUMAN_ 22-Aug-06 19:11 
Generalbefore ask question here, i have Pin
ikohl22-Aug-06 19:30
ikohl22-Aug-06 19:30 
GeneralRe: before ask question here, i have Pin
Waldermort22-Aug-06 19:39
Waldermort22-Aug-06 19:39 
AnswerRe: before ask question here, i have Pin
prasad_som22-Aug-06 19:59
prasad_som22-Aug-06 19:59 
Generalok, thanks, let me try Pin
ikohl22-Aug-06 20:30
ikohl22-Aug-06 20:30 
Generalstill fail Pin
ikohl22-Aug-06 20:41
ikohl22-Aug-06 20:41 
AnswerRe: still fail Pin
prasad_som22-Aug-06 20:46
prasad_som22-Aug-06 20:46 
Generalreally thanks, it succeeds, but Pin
ikohl22-Aug-06 20:48
ikohl22-Aug-06 20:48 
AnswerRe: really thanks, it succeeds, but Pin
prasad_som22-Aug-06 20:55
prasad_som22-Aug-06 20:55 
Generalit's ok in sdi program Pin
ikohl22-Aug-06 21:09
ikohl22-Aug-06 21:09 
GeneralRe: it's ok in sdi program Pin
prasad_som22-Aug-06 21:31
prasad_som22-Aug-06 21:31 
Generalok, i will review it, really thanks for your help Pin
ikohl22-Aug-06 22:43
ikohl22-Aug-06 22:43 
Questionseparate thread Pin
thathvamsi22-Aug-06 17:35
thathvamsi22-Aug-06 17:35 
AnswerRe: separate thread Pin
Stephen Hewitt22-Aug-06 17:39
Stephen Hewitt22-Aug-06 17:39 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.