Page 1 of 1
Regarding reading signed integer using wxDataInputStream
Posted: Fri Aug 30, 2019 12:17 pm
by saranya
we are reading a file using wxDataInputStream we are having signed integer values in the data. As Read32 or Read64 are returning unsigned integer.How to get signed integer value.
Re: Regarding reading signed integer using wxDataInputStream
Posted: Fri Aug 30, 2019 3:38 pm
by Manolo
Some types use the overloaded "<<" operator:
Code: Select all
wxFileInputStream input( "mytext.dat" );
wxDataInputStream store( input );
wxInt32 ivar;
store >> ivar; // reads a signed integer
You can find these overloads at
yourwxdir/include/wx/datstrm.h