Click here to Skip to main content
15,918,967 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralConvert Date to COleDateTime Pin
Monty219-Nov-06 21:51
Monty219-Nov-06 21:51 
GeneralAnd the answer is .. Pin
Monty219-Nov-06 21:54
Monty219-Nov-06 21:54 
QuestionAdding treeviewCtrl to a combobox Pin
Nagaraju_Focus19-Nov-06 21:33
Nagaraju_Focus19-Nov-06 21:33 
AnswerRe: Adding treeviewCtrl to a combobox Pin
Steve Echols19-Nov-06 21:52
Steve Echols19-Nov-06 21:52 
QuestionScoket. Pin
Abbas Murad19-Nov-06 21:11
Abbas Murad19-Nov-06 21:11 
AnswerRe: Scoket. Pin
Mark Salsbery20-Nov-06 5:58
Mark Salsbery20-Nov-06 5:58 
GeneralRe: Scoket. Pin
Abbas Murad20-Nov-06 17:41
Abbas Murad20-Nov-06 17:41 
QuestionSerial I/O in Non-Overlapped mode .... Pin
Mohammd Bilal19-Nov-06 21:08
Mohammd Bilal19-Nov-06 21:08 
Hi,
I have a question regarding serial I/O.
...
I have been programming in MFC to interface Serial Ports
in Windows NT in order to read/write them in Overlapped as well as
in non-overlapped mode.
...
It worked fine all the time.
...
But I have a question regarding serial port.
...
That,
1) I open COM1 port in non-overlapped (Blocking I/O) mode
2) I Create a seprate thread, in which I attemp to read five Characters.
using "ReadFile" function.
3) Now, this function will not return unless I get all the five Characters
(As I have forced the "Read Timeouts" and "Write Timeouts" in
COMMTIMEOUTS structure to zeros)
4) But in case if I want to abort without further waiting for the arrival
of characters, I would have to abort the thread "Pre-matureally" ...
5) How can I do this, since the thread is simply blocked in waiting for
characters, as the "ReadFile" function has still not returned.
6) The application window closes, but the Thread keeps on running behind.

...
Basically I want my thread to terminate alongwith when application terminates.
But I dont get it through...
...
I will be very thankful for your assistance ...


...

AnswerRe: Serial I/O in Non-Overlapped mode .... Pin
Roger Stoltz19-Nov-06 21:36
Roger Stoltz19-Nov-06 21:36 
AnswerRe: Serial I/O in Non-Overlapped mode .... Pin
CPallini20-Nov-06 2:24
mveCPallini20-Nov-06 2:24 
QuestionHow to draw the window border by myself ? Pin
samfromcn19-Nov-06 21:08
samfromcn19-Nov-06 21:08 
QuestionHow to get mouse selected text? thanks ... Pin
tiaozi19-Nov-06 20:46
tiaozi19-Nov-06 20:46 
AnswerRe: How to get mouse selected text? thanks ... Pin
Rajesh R Subramanian19-Nov-06 23:20
professionalRajesh R Subramanian19-Nov-06 23:20 
Answerchildfrm Pin
Programm3r20-Nov-06 4:47
Programm3r20-Nov-06 4:47 
AnswerMainfrm Pin
Programm3r20-Nov-06 4:48
Programm3r20-Nov-06 4:48 
Questionset transparent to slidercontrol background... Pin
klvin19-Nov-06 19:53
klvin19-Nov-06 19:53 
AnswerRe: set transparent to slidercontrol background... Pin
prasad_som19-Nov-06 20:09
prasad_som19-Nov-06 20:09 
GeneralRe: set transparent to slidercontrol background... Pin
klvin20-Nov-06 1:22
klvin20-Nov-06 1:22 
Generalc++ constructor Pin
Swetha Desai19-Nov-06 19:00
Swetha Desai19-Nov-06 19:00 
GeneralRe: c++ constructor Pin
Parthi_Appu19-Nov-06 19:46
Parthi_Appu19-Nov-06 19:46 
GeneralRe: c++ constructor Pin
tiaozi19-Nov-06 20:48
tiaozi19-Nov-06 20:48 
QuestionHow I can resize the web page size in Microsoft web browser? Pin
Sameer_Thakur19-Nov-06 18:58
Sameer_Thakur19-Nov-06 18:58 
AnswerRe: How I can resize the web page size in Microsoft web browser? Pin
Parthi_Appu19-Nov-06 19:44
Parthi_Appu19-Nov-06 19:44 
QuestionWriting an iterator for your class Pin
HondaCBR60019-Nov-06 18:29
HondaCBR60019-Nov-06 18:29 
AnswerRe: Writing an iterator for your class Pin
Sceptic Mole19-Nov-06 22:14
Sceptic Mole19-Nov-06 22:14 

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.