![]() |
|
#1
|
|||
|
|||
Changing big/little endianHi,
My program is supposed to work in both machines with little endian and big endian. My code for chaning the endian of short integers seems to be fine, but I am getting weired results for chaning floats. Here is the corresponding part of the code: CPP / C++ / C Code:
Could anyone please let me know what the problem is? Thank you, Nina |
|
#2
|
|||
|
|||
|
Quote:
|
|
#3
|
|||
|
|||
|
Quote:
Should the output be such a a small numbers (in order of -40 to -38 ) , and sometimes i get negative numbers back. Nina |
|
#4
|
|||
|
|||
|
Quote:
|
Recent GIDBlog
Writing a book by crystalattice
| Thread Tools | Search this Thread |
| Rate This Thread | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| changing colour of individual items of control created through CListCtrl | Sadia | MS Visual C++ / MFC Forum | 0 | 01-Jul-2005 09:09 |
| Changing dialog template | oz_dkj | C++ Forum | 0 | 23-May-2005 08:47 |
| Changing the Properties of a Control Programmatically | ddod | MS Visual C++ / MFC Forum | 10 | 11-Aug-2004 10:26 |
| Problems with changing display resolution | vsseym | Computer Software Forum - Windows | 2 | 27-Jul-2004 11:01 |
| changing default webpage info | mkyb14 | Apache Web Server Forum | 2 | 12-Nov-2003 04:12 |
Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The