Click here to Skip to main content
16,011,949 members
Home / Discussions / Managed C++/CLI
   

Managed C++/CLI

 
GeneralRe: Trouble converting bitmap to gif files. Pin
Luc Pattyn16-Dec-07 4:58
sitebuilderLuc Pattyn16-Dec-07 4:58 
Question"non-unicode programs" problem Pin
hhn16-Dec-07 2:37
hhn16-Dec-07 2:37 
GeneralRe: "non-unicode programs" problem Pin
Luc Pattyn16-Dec-07 4:53
sitebuilderLuc Pattyn16-Dec-07 4:53 
QuestionBit Copying Pin
Jeffrey Walton15-Dec-07 15:21
Jeffrey Walton15-Dec-07 15:21 
GeneralRe: Bit Copying Pin
Christian Graus15-Dec-07 15:47
protectorChristian Graus15-Dec-07 15:47 
GeneralRe: Bit Copying Pin
Jeffrey Walton15-Dec-07 15:51
Jeffrey Walton15-Dec-07 15:51 
GeneralRe: Bit Copying Pin
Jeffrey Walton16-Dec-07 7:32
Jeffrey Walton16-Dec-07 7:32 
GeneralRe: Bit Copying [modified] Pin
Luc Pattyn15-Dec-07 16:18
sitebuilderLuc Pattyn15-Dec-07 16:18 
Hi Jeff,

you must be running on a "little-endian system" (LE) such as an Intel x86; this means values get
stored with their least significant byte at the lowest address.
Other processor families such as PowerPC are "big-endian" )BE) and store the most significant byte
"first", i.e. at the lowest address.

It is just a convention, and yes BE seems the more natural one.

The byte order does not matter much in most circumstances; it does when exchanging data:
- through files, following some convention, so they can be exchanged all around;
- through networks (e.g. Ethernet packets)
- with a specific hardware interface

A byte swap is a costly operation.

The IPAddress class offers some methods that may interest you.

[added]
To swap with your own code, the easiest I could ever figure was using a union between
your type and a byte array (write the type's value, swap the bytes in the array, read the type).
But now some languages don't support that very well (C#, Java).
[/added]

Smile | :)
Luc Pattyn [Forum Guidelines] [My Articles]


Sorry for any delays in replying, I currently don't always get e-mail notifications.


modified on Saturday, December 15, 2007 10:33:56 PM

GeneralRe: Bit Copying Pin
Jeffrey Walton16-Dec-07 1:59
Jeffrey Walton16-Dec-07 1:59 
GeneralRe: Bit Copying Pin
Luc Pattyn16-Dec-07 4:26
sitebuilderLuc Pattyn16-Dec-07 4:26 
GeneralUser Controls Pin
mikobi15-Dec-07 0:09
mikobi15-Dec-07 0:09 
GeneralRe: User Controls Pin
Christian Graus15-Dec-07 0:24
protectorChristian Graus15-Dec-07 0:24 
Question[Message Deleted] Pin
(Steven Hicks)n+114-Dec-07 12:39
(Steven Hicks)n+114-Dec-07 12:39 
GeneralRe: Question about redeclaring header files Pin
Christian Graus14-Dec-07 14:48
protectorChristian Graus14-Dec-07 14:48 
QuestionRe: [Message Deleted] Pin
Hamid_RT20-Dec-07 2:23
Hamid_RT20-Dec-07 2:23 
QuestionClass intantiation renders app unresponsive Pin
Dewm Solo14-Dec-07 9:42
Dewm Solo14-Dec-07 9:42 
GeneralRe: Class intantiation renders app unresponsive [modified] Pin
Luc Pattyn14-Dec-07 10:24
sitebuilderLuc Pattyn14-Dec-07 10:24 
GeneralRe: Class intantiation renders app unresponsive Pin
Dewm Solo14-Dec-07 10:36
Dewm Solo14-Dec-07 10:36 
GeneralRe: Class intantiation renders app unresponsive Pin
Dewm Solo14-Dec-07 10:50
Dewm Solo14-Dec-07 10:50 
GeneralRe: Class intantiation renders app unresponsive Pin
Luc Pattyn14-Dec-07 11:14
sitebuilderLuc Pattyn14-Dec-07 11:14 
GeneralRe: Class intantiation renders app unresponsive Pin
Dewm Solo14-Dec-07 11:20
Dewm Solo14-Dec-07 11:20 
GeneralRe: Class intantiation renders app unresponsive Pin
Luc Pattyn14-Dec-07 11:34
sitebuilderLuc Pattyn14-Dec-07 11:34 
GeneralRe: Class intantiation renders app unresponsive Pin
Mark Salsbery14-Dec-07 11:41
Mark Salsbery14-Dec-07 11:41 
GeneralRe: Class intantiation renders app unresponsive Pin
Luc Pattyn14-Dec-07 12:05
sitebuilderLuc Pattyn14-Dec-07 12:05 
GeneralRe: Class intantiation renders app unresponsive Pin
Mark Salsbery14-Dec-07 12:10
Mark Salsbery14-Dec-07 12:10 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.