frnds,
i m interfacing wid a smart card reader (SCR) i made
using ATMEGA8. it communicates with pc via UART. when u send a command
to the SCR via com port it will give the data stored in smart card in
the response. This works in Hyper Terminal. It also works fine when i
tested it with mscomm control using MFC.
I need a stand alone
function, say "CString read_from_card()" which should read the data
from the card and return the CString. Now the problem is that when I
send the command to MSCOMM using the Setoutput() method, MSCOMM gives
the reponse only via the OnCommEvent() or via OnTime() events. Hence if
i send the command thru one function , i'll get the response in some
other function. So this does not satisfy my criteria of reading the
smartcard in a single function.
working on this problem since almost a week, i m frustrated ..
so plz help if u hav any idea..
its urgent...