Autor Beitrag
LonghornUser
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 796



BeitragVerfasst: Mi 27.06.07 07:43 
Hallo,

ich habe hier ein Programm von einer Fremdfirma (erworben) und möchte dieses bearbeiten. Da di Firma aber keinen Support mehr gibt, stelle ich meine Frage mal hier.
Und zwar fehlt mir eine Komponente zum Ansprechen der seriellen COM-Schnittstelle.
Wenn ich das Programm in Delphi öffne, verlangt er nach der Komponente "TComm" und es ist auch eine Unit comm_async.pas eingebunden.
Außerdem werden folgende Befehle damit ausgeführt:
ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
Comm1.Port := 1;
Comm1.Open;
Comm1.Conncted
Comm1.Close;
comm1.Write(@st1[lv1],1);


Wisst ihr eventuell, welche Komponente es sein könnte oder welche andere Komponente das selbe kann (möglichst mit den selben Befehlen) ?

Für jeden erdenklichen Hinweis wäre ich sehr dankbar :)

Ciao LHUser
chrisw
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 439
Erhaltene Danke: 3

W2K
D7
BeitragVerfasst: Mi 27.06.07 07:47 
Ich denke das ist TComport:

www.torry.net/quicks...omport&Title=Yes

_________________
Man sollte keine Dummheit zweimal begehen, die Auswahl ist schließlich groß genug.
LonghornUser Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 796



BeitragVerfasst: Mi 27.06.07 09:29 
Wow, danke !! Funzt soweit ganz gut. Er erkennt fast alle Lines an.
Nur hier hab ich noch nen Fehler:
ausblenden Delphi-Quelltext
1:
comm2.Write(@puffer[lv2],1);					


[Fehler] konvert.pas(320): Variable erforderlich

Und zwar bei der 1.

Kannst du mir da weiterhelfen ?
chrisw
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 439
Erhaltene Danke: 3

W2K
D7
BeitragVerfasst: Mi 27.06.07 09:39 
Die Komponente verlangt hier die Anzahl der zu schreibenden Bytes.
In Deinem Fall würde ich sagen :
ausblenden Delphi-Quelltext
1:
comm2.Write(@puffer[lv2],length(@puffer[lv2]));					

_________________
Man sollte keine Dummheit zweimal begehen, die Auswahl ist schließlich groß genug.
LonghornUser Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 796



BeitragVerfasst: Mi 27.06.07 10:59 
Danke erstmal.
Aber er sagt mir trotzdem die o.g. Fehlermeldung.
Noch eine Idee ?

Falls nein, TComPort ist zwar nah an der von mir gesuchten Komponente dran, aber kennt vielleicht einer genau dieses TComm ?
24karatboy
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 110

Win XP
Delphi (Delphi Win32)
BeitragVerfasst: Mi 27.06.07 11:00 
TComm ist eventuell eine selbst modifizierte TCommPort
LonghornUser Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 796



BeitragVerfasst: Mi 27.06.07 11:02 
Und mit der o.g. Zeile ? Weiß da jemand Rat ?
chrisw
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 439
Erhaltene Danke: 3

W2K
D7
BeitragVerfasst: Mi 27.06.07 12:03 

_________________
Man sollte keine Dummheit zweimal begehen, die Auswahl ist schließlich groß genug.
chrisw
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 439
Erhaltene Danke: 3

W2K
D7
BeitragVerfasst: Mi 27.06.07 12:05 

_________________
Man sollte keine Dummheit zweimal begehen, die Auswahl ist schließlich groß genug.
chrisw
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 439
Erhaltene Danke: 3

W2K
D7
BeitragVerfasst: Mi 27.06.07 12:07 

_________________
Man sollte keine Dummheit zweimal begehen, die Auswahl ist schließlich groß genug.
chrisw
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 439
Erhaltene Danke: 3

W2K
D7
BeitragVerfasst: Mi 27.06.07 12:25 
Sorry für die Mehrfachübermittlung, weiss auch nicht wie das passiert ist !!



Hier hat HariboHunter in der Delphi-Praxis die selbe Komponente genutzt. Vielleicht fragst Du ihn mal !!

_________________
Man sollte keine Dummheit zweimal begehen, die Auswahl ist schließlich groß genug.