Autor Beitrag
pk910
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 74

Win VISTA, Win 98, Win XP, Linux
Delphi 5.0
BeitragVerfasst: Sa 12.08.06 12:14 
Hallo

Ich habe eine Verbindung zwischen 2 PC's aufgebaut.

Jetzt habe ich ein Problem:
ausblenden Delphi-Quelltext
1:
2:
teil:=Socket.ReceiveText;
chars:=Integer(Copy(teil,0,1));


immer die ersten 2 Buchstaben des empfangenen Textes sind Ziffern.
Aber Integer() macht aus z.B. 06 immer 9189644
Chryzler
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 1097
Erhaltene Danke: 2



BeitragVerfasst: Sa 12.08.06 13:37 
ausblenden Delphi-Quelltext
1:
2:
teil := Socket.ReceiveText; 
chars := StrToInt(Copy(teil, 12));
pk910 Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 74

Win VISTA, Win 98, Win XP, Linux
Delphi 5.0
BeitragVerfasst: Sa 12.08.06 13:53 
Danle!
Narses
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Administrator
Beiträge: 10185
Erhaltene Danke: 1261

W11x64
TP3 .. D7pro .. D10.2CE
BeitragVerfasst: So 13.08.06 23:27 
Moin!

user profile iconpk910 hat folgendes geschrieben:
immer die ersten 2 Buchstaben des empfangenen Textes sind Ziffern.

Das sieht mir so aus, als würdest du dich auf die Ereignisse als Datentrennung verlassen. :? ;) Falls du damit mal merkwürdige Effekte feststellen solltest, schau mal hier. ;)

Weiterhin empfehle ich dir jetzt schonmal ein Suche in: Delphi-Library PROTOKOLL; sieht so aus, als könntest du das "demnächst" gebrauchen... ;)

cu
Narses

_________________
There are 10 types of people - those who understand binary and those who don´t.