Click here to Skip to main content
15,891,431 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
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 
AnswerRe: How to detect whether a device is connected to a Serial port (Re-Post,since not yet satisfied with given suggestions) Pin
Vaclav_16-Oct-08 17:01
Vaclav_16-Oct-08 17:01 
Questionstring manipulation question Pin
monsieur_jj15-Oct-08 23:07
monsieur_jj15-Oct-08 23:07 
AnswerRe: string manipulation question [modified] Pin
Michael Schubert15-Oct-08 23:21
Michael Schubert15-Oct-08 23:21 
JokeRe: string manipulation question Pin
Rajesh R Subramanian16-Oct-08 0:34
professionalRajesh R Subramanian16-Oct-08 0:34 
GeneralRe: string manipulation question Pin
Michael Schubert16-Oct-08 1:03
Michael Schubert16-Oct-08 1:03 
JokeRe: string manipulation question Pin
SandipG 16-Oct-08 0:53
SandipG 16-Oct-08 0:53 
GeneralRe: string manipulation question Pin
Michael Schubert16-Oct-08 1:05
Michael Schubert16-Oct-08 1:05 
JokeRe: string manipulation question Pin
Cedric Moonen16-Oct-08 1:12
Cedric Moonen16-Oct-08 1:12 
GeneralRe: string manipulation question Pin
Michael Schubert16-Oct-08 1:27
Michael Schubert16-Oct-08 1:27 
JokeRe: string manipulation question Pin
CPallini16-Oct-08 1:53
mveCPallini16-Oct-08 1:53 
GeneralRe: string manipulation question Pin
SandipG 16-Oct-08 1:56
SandipG 16-Oct-08 1:56 
GeneralRe: string manipulation question Pin
CPallini16-Oct-08 2:03
mveCPallini16-Oct-08 2:03 
AnswerRe: string manipulation question Pin
CPallini15-Oct-08 23:33
mveCPallini15-Oct-08 23:33 
AnswerRe: string manipulation question Pin
Rajesh R Subramanian15-Oct-08 23:33
professionalRajesh R Subramanian15-Oct-08 23:33 
AnswerRe: string manipulation question Pin
David Crow16-Oct-08 3:46
David Crow16-Oct-08 3:46 
Questionhow to get name of network adapter card if ip address is given in linux? Pin
an8915-Oct-08 23:01
an8915-Oct-08 23:01 

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.