Autor Beitrag
NeWsOfTzzz
ontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic starofftopic star
Beiträge: 233


D4 Prof
BeitragVerfasst: Di 26.10.04 03:32 
Ja ich würde gerne ein Array of Byte in einen Record umwandeln.. das muss doch irgendwie gehen oder?
jasocul
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 6395
Erhaltene Danke: 149

Windows 7 + Windows 10
Sydney Prof + CE
BeitragVerfasst: Di 26.10.04 07:17 
Ja.
ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
6:
7:
8:
type
  tArrOfByte = Array [0..3] of Byte;
  tRecOfByte = Record
    b0 : Byte;
    b1 : Byte;
    b2 : Byte;
    b3 : Byte;
  end;

Wo ist dein Problem?
NeWsOfTzzz Threadstarter
ontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic starofftopic star
Beiträge: 233


D4 Prof
BeitragVerfasst: Di 26.10.04 10:38 
ne momentchen mal ^^
ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
6:
7:
type
  IntegerStringrecord = record
    msgType: Byte;
    Len: Word;
    int:integer;
    msg:array[0..0] of Char;
end;

das ist mein record.

Moderiert von user profile iconTino: Delphi-Tags hinzugefügt.
.Chef
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 1112



BeitragVerfasst: Di 26.10.04 11:59 
Ja, und? Bring maln bißchen Prosa. Wo ist dein Bytearray? Wie lang ist es?

_________________
Die Antworten auf die 5 häufigsten Fragen:
1. Copy(), Pos(), Length() --- 2. DoubleBuffered:=True; --- 3. Application.ProcessMessages bzw. TThread --- 4. ShellExecute() --- 5. Keine Vergleiche von Real-Typen mit "="!
NeWsOfTzzz Threadstarter
ontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic starofftopic star
Beiträge: 233


D4 Prof
BeitragVerfasst: Di 26.10.04 12:15 
das byte array ist dynamisch.. genauso wie der record dynamisch ist, aber ich denke mal ich kann´s jetzt mit den informationen aus "Allgemein: Byte in andere Datentypen umwandeln?" schritt für schritt umwandeln..
NeWsOfTzzz Threadstarter
ontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic starofftopic star
Beiträge: 233


D4 Prof
BeitragVerfasst: Di 26.10.04 12:48 
Jepp klappt einwandfrei... puuuh... kann geschlossen werden O.o