Click here to Skip to main content
15,902,736 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Close External Programs Pin
Stephane Rodriguez.5-Apr-03 2:08
Stephane Rodriguez.5-Apr-03 2:08 
GeneralUsing SAFEARRAY Pin
Yank14-Apr-03 8:38
Yank14-Apr-03 8:38 
GeneralRe: Using SAFEARRAY Pin
J. Dunlap4-Apr-03 18:18
J. Dunlap4-Apr-03 18:18 
GeneralRe: Using SAFEARRAY Pin
J. Dunlap5-Apr-03 10:38
J. Dunlap5-Apr-03 10:38 
GeneralResizing CButton according to text. Pin
Maximilien4-Apr-03 7:55
Maximilien4-Apr-03 7:55 
QuestionHow to cancel ReadFile Pin
Anonymous4-Apr-03 7:29
Anonymous4-Apr-03 7:29 
AnswerRe: How to cancel ReadFile Pin
John M. Drescher4-Apr-03 8:10
John M. Drescher4-Apr-03 8:10 
GeneralRe: How to cancel ReadFile Pin
Heiko20034-Apr-03 8:46
sussHeiko20034-Apr-03 8:46 
Sorry, for not mention it
I don't want to read from a File. I want to read two times 13bytes for com1;
the 13th ist an carriage return.

You say I should use a kill Event, but I don't know which Event I should take.

Can you give me an example.

Here is a part of my programcode:

h_com = CreateFile("COM1", GENERIC_READ | GENERIC_WRITE, 0, NULL, OPEN_EXISTING, 0, NULL);

...settings of dcbs and COMMTIMEOUTS

ReadFile(((Messgeraete*)lparam)->h_com, &inbuffer1, 13, &nBytesRead1, NULL);
ReadFile(((Messgeraete*)lparam)->h_com, &inbuffer2, 13, &nBytesRead2, NULL);


Now I need the command (which I want to use in my Thread) to kill the ReadFile

Thanks
Heiko



GeneralRe: How to cancel ReadFile Pin
John M. Drescher4-Apr-03 8:51
John M. Drescher4-Apr-03 8:51 
GeneralRe: How to cancel ReadFile Pin
Heiko20035-Apr-03 10:15
sussHeiko20035-Apr-03 10:15 
AnswerRe: How to cancel ReadFile Pin
Dudi Avramov5-Apr-03 21:56
Dudi Avramov5-Apr-03 21:56 
GeneralProblem with flickering in WM_SIZE Pin
Optimus Chaos4-Apr-03 6:00
Optimus Chaos4-Apr-03 6:00 
GeneralRe: Problem with flickering in WM_SIZE Pin
Joan M4-Apr-03 6:41
professionalJoan M4-Apr-03 6:41 
GeneralRe: Problem with flickering in WM_SIZE Pin
Dudi Avramov5-Apr-03 21:59
Dudi Avramov5-Apr-03 21:59 
GeneralRe: Problem with flickering in WM_SIZE Pin
Optimus Chaos6-Apr-03 20:46
Optimus Chaos6-Apr-03 20:46 
QuestionHow do I pass a structure to a function?? Pin
IrishSonic4-Apr-03 6:00
IrishSonic4-Apr-03 6:00 
AnswerRe: How do I pass a structure to a function?? Pin
Jesse Evans4-Apr-03 6:24
Jesse Evans4-Apr-03 6:24 
GeneralRe: How do I pass a structure to a function?? Pin
John R. Shaw4-Apr-03 7:54
John R. Shaw4-Apr-03 7:54 
GeneralRe: How do I pass a structure to a function?? Pin
Jesse Evans4-Apr-03 8:15
Jesse Evans4-Apr-03 8:15 
GeneralRe: How do I pass a structure to a function?? Pin
Rob McBean4-Apr-03 10:31
Rob McBean4-Apr-03 10:31 
GeneralRe: How do I pass a structure to a function?? Pin
Jesse Evans4-Apr-03 10:55
Jesse Evans4-Apr-03 10:55 
GeneralRe: How do I pass a structure to a function?? Pin
Gary R. Wheeler4-Apr-03 14:24
Gary R. Wheeler4-Apr-03 14:24 
GeneralRe: How do I pass a structure to a function?? Pin
John R. Shaw4-Apr-03 15:36
John R. Shaw4-Apr-03 15:36 
AnswerRe: How do I pass a structure to a function?? Pin
Ernesto D.4-Apr-03 23:37
Ernesto D.4-Apr-03 23:37 
GeneralBeginner Database Programming Question Pin
Brent Corkum4-Apr-03 5:21
Brent Corkum4-Apr-03 5:21 

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.