If you are using the main C++ distribution of wxWidgets, Feel free to ask any question related to wxWidgets development here. This means questions regarding to C++ and wxWidgets, not compile problems.
2 posts • Page 1 of 1
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.
Some types use the overloaded "<<" operator:
You can find these overloads at yourwxdir/include/wx/datstrm.h
Code: Select all
wxFileInputStream input( "mytext.dat" ); wxDataInputStream store( input ); wxInt32 ivar; store >> ivar; // reads a signed integer