Einzelnen Beitrag anzeigen

Benutzerbild von 3_of_8
3_of_8

Registriert seit: 22. Mär 2005
Ort: Dingolfing
4.129 Beiträge
 
Turbo Delphi für Win32
 
#17

Re: Aus einem Word das High und Low Byte extrahieren

  Alt 16. Jan 2007, 16:46
Aber auch da muss man das Little Endian Format beachten:

Delphi-Quellcode:
type
  TWordByteConversion = packed record
    case Integer of
      0: (TheWord: Word);
      1: (Low, High: Byte);
  end;
Manuel Eberl
„The trouble with having an open mind, of course, is that people will insist on coming along and trying to put things in it.“
- Terry Pratchett
  Mit Zitat antworten Zitat