Im afraid I can't do that. Im writing to a specific file format that is binary and big-endian.
Type: Posts; User: alexcurtis
Im afraid I can't do that. Im writing to a specific file format that is binary and big-endian.
OK. No Problem.
Am I still going to run into problems on machines (with a different endian than the machine that wrote the file) when they try to decode it?
-Alex
How do I go about swapping bytes (little endian -> big endian and visa-versa) in a platform independent way.
I saw this:
float FloatSwap( float f )
{
union
{
float f;
http://cpp.codenewbie.com/articles/cpp/1533/Operator_Overloading-Page_1.html
Google Is Awesome :)
wxWigets, GTK, QT, FLTK to name a few cross-platform gui toolkits.
You can of course use win32 api
Cheers
-Alex