K
KR.KIM
Hi!
When I compile my code and try to debugging,
i met one trouble in watch window.
i can't see some buffer values,
it looks filled by 0x00(null) in watch window.
but,buffer was filled by real value data.
the 0xFD(253) value always looks incorrect.
///////////////////////////////////////////////
char szbuf[10];
recv(hSocket,szbuf,sizeof(szbuf),0);
//the buffer real filled following data,
//szbuf[0] = 0xFF;
//szbuf[1] = 0xFD;
//szbuf[2] = 0x20;
but,in watch window szbuf[1] looks 0x00.
besides,"szbuf[1] & 0xFF" looks "0xFD" correctly.
char and unsigned char type boths are unusefull.
VC6.0 looks correctly.
it's VC7.0 bug?
how can i catch correct variable(s) value ?
When I compile my code and try to debugging,
i met one trouble in watch window.
i can't see some buffer values,
it looks filled by 0x00(null) in watch window.
but,buffer was filled by real value data.
the 0xFD(253) value always looks incorrect.
///////////////////////////////////////////////
char szbuf[10];
recv(hSocket,szbuf,sizeof(szbuf),0);
//the buffer real filled following data,
//szbuf[0] = 0xFF;
//szbuf[1] = 0xFD;
//szbuf[2] = 0x20;
but,in watch window szbuf[1] looks 0x00.
besides,"szbuf[1] & 0xFF" looks "0xFD" correctly.
char and unsigned char type boths are unusefull.
VC6.0 looks correctly.
it's VC7.0 bug?
how can i catch correct variable(s) value ?