Click here to Skip to main content
15,911,306 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: File Filter Pin
KarstenK16-Oct-08 0:05
mveKarstenK16-Oct-08 0:05 
GeneralRe: File Filter Pin
CPallini16-Oct-08 0:12
mveCPallini16-Oct-08 0:12 
GeneralRe: File Filter Pin
lpVCcode16-Oct-08 0:14
lpVCcode16-Oct-08 0:14 
GeneralRe: File Filter Pin
CPallini16-Oct-08 0:42
mveCPallini16-Oct-08 0:42 
General[Message Deleted] Pin
lpVCcode16-Oct-08 0:50
lpVCcode16-Oct-08 0:50 
GeneralRe: File Filter Pin
CPallini16-Oct-08 0:59
mveCPallini16-Oct-08 0:59 
JokeRe: File Filter Pin
Rajesh R Subramanian16-Oct-08 1:19
professionalRajesh R Subramanian16-Oct-08 1:19 
JokeRe: File Filter Pin
CPallini16-Oct-08 1:35
mveCPallini16-Oct-08 1:35 
JokeRe: File Filter Pin
Rajesh R Subramanian16-Oct-08 1:53
professionalRajesh R Subramanian16-Oct-08 1:53 
JokeRe: File Filter Pin
CPallini16-Oct-08 2:02
mveCPallini16-Oct-08 2:02 
GeneralRe: File Filter Pin
SandipG 16-Oct-08 2:08
SandipG 16-Oct-08 2:08 
GeneralRe: File Filter Pin
Hamid_RT16-Oct-08 4:19
Hamid_RT16-Oct-08 4:19 
QuestionRe: File Filter Pin
CPallini16-Oct-08 5:15
mveCPallini16-Oct-08 5:15 
AnswerRe: File Filter Pin
Hamid_RT16-Oct-08 5:48
Hamid_RT16-Oct-08 5:48 
GeneralRe: File Filter Pin
Rajesh R Subramanian16-Oct-08 1:42
professionalRajesh R Subramanian16-Oct-08 1:42 
AnswerRe: File Filter Pin
CPallini16-Oct-08 0:08
mveCPallini16-Oct-08 0:08 
GeneralRe: File Filter Pin
lpVCcode16-Oct-08 2:39
lpVCcode16-Oct-08 2:39 
AnswerRe: [Message Deleted] Pin
Hamid_RT16-Oct-08 4:13
Hamid_RT16-Oct-08 4:13 
QuestionDrawing Auto-adjusted proportioned text Pin
Muneeb Abdul Shakoor15-Oct-08 23:41
Muneeb Abdul Shakoor15-Oct-08 23:41 
AnswerRe: Drawing Auto-adjusted proportioned text Pin
KarstenK16-Oct-08 0:07
mveKarstenK16-Oct-08 0:07 
QuestionRe: Drawing Auto-adjusted proportioned text [modified] Pin
Muneeb Abdul Shakoor16-Oct-08 0:16
Muneeb Abdul Shakoor16-Oct-08 0:16 
AnswerRe: Drawing Auto-adjusted proportioned text Pin
KarstenK16-Oct-08 0:48
mveKarstenK16-Oct-08 0:48 
AnswerRe: Drawing Auto-adjusted proportioned text Pin
Jose David Pujo16-Oct-08 0:51
Jose David Pujo16-Oct-08 0:51 
QuestionHow to detect whether a device is connected to a Serial port (Re-Post,since not yet satisfied with given suggestions) Pin
kapardhi15-Oct-08 23:34
kapardhi15-Oct-08 23:34 
Is there any command that gets all the details of the device connected to the serial port ??

Actually i connect a smart card reader to a serial COM port, i send some data to it using WriteFile (), in return it gives some response, i read the response using ReadFile().

Now if i donot connect the reader and simply connect the serial cable to computers serial port i send the data to the handle of the serial port using WriteFile(), the computer(or ReadFile ()) waits infinitely for receiving response !

In order to solve above problem i use COMMTIMEOUTS, so if the specified time expires the ReadFile() executes successfully although it doesn't get the response!!
Actually i donot want to use COMMTIMEOUTS since i donot know the exact time in which the reader sends a response !!

if i use maximum delay it decreases the performance of my application, if i use completely less time delay, the ReadFile() expires even before it receives respone from the reader!!

so is there any other suggestion
AnswerRe: How to detect whether a device is connected to a Serial port (Re-Post,since not yet satisfied with given suggestions) Pin
CPallini15-Oct-08 23:37
mveCPallini15-Oct-08 23:37 

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.