well actually I am sending(i.e. writing) CSTRING data through serial port. & reading it through Dword since
CSerialcom readbyte has only one parameter i.e DWORD.
Well I am able to send(write) the full data 57 char (checked in hyper terminal also).
But when I am reading data I am getting only 46 char.. I don't know why. I tried to convert DWORD to CString but i couldnt get suceed
Code:
Sending /Writing Data Serially
CString data="dfdfsdfwewrrttnmnmbn12.343iuyiuyiuyiuyiyuyubnmb nbvbnbn"
Receiving Serially
CSerialcom port;
DWORD buffer;
unsigned char frame;
int i;
if(port.ReadByte(buffer))>0)
frame[i++]=(unsigned char)buffer;
In buffer i am receiving only 46 char