Autor Beitrag
Aya
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 1964
Erhaltene Danke: 15

MacOSX 10.6.7
Xcode / C++
BeitragVerfasst: Fr 27.01.06 14:59 
Hi,

weiß jemand wie man eine COM Schnittstelle programmiert...??

Also, ich meine das ding womit dann auch andere Programme das eigene fernsteuern können.
Wie ich die dinger verwende (also wenn andere programme sie anbieten) etc ist kein thema.. aber wie mach ich soetwas selber mit Delphi?

Au'revoir,
Aya

_________________
Aya
I aim for my endless dreams and I know they will come true!
mkinzler
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 4106
Erhaltene Danke: 13


Delphi 2010 Pro; Delphi.Prism 2011 pro
BeitragVerfasst: Fr 27.01.06 15:03 
Bei Delphi ist sogar schon ein Beispiel dabei.

_________________
Markus Kinzler.
The Who
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 25

Win XP Prof
D3 Prof, D8, D7E
BeitragVerfasst: Fr 27.01.06 15:10 
Was willst du denn machen. Im anhang ist ne datei von "Pc Schnittstellen unter Windows" ein Buch vonHans Joachim Berndt. Sie enthält eine OPENCOM function. (Function openCom(S:PChar):Integer;stdcall;external 'Port.dll').

Cya
Einloggen, um Attachments anzusehen!
Aya Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 1964
Erhaltene Danke: 15

MacOSX 10.6.7
Xcode / C++
BeitragVerfasst: Fr 27.01.06 15:19 
Hi,

ich will sowas machen wie z.B. iTunes anbietet.. :)

Man bindet das COM Object ein und kann dann auf die globale Var "iTunesApp" zugreifen.
Dann kann ich z.B. mit
ausblenden Delphi-Quelltext
1:
iTunesApp.currentTrack.Name					

auf den aktuell abgespielten Tracknamen zugreifen.

Sowas brauch ich :)

Au'revoir,
Aya

PS: Welches beispiel is denn das welches bei Delphi bei is??

_________________
Aya
I aim for my endless dreams and I know they will come true!
The Who
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 25

Win XP Prof
D3 Prof, D8, D7E
BeitragVerfasst: Fr 27.01.06 15:31 
Sry ich lag da mit der Port.dll völlig falsch. Mein Fehler. Leider weiß ich nichts über Com Objekte.

Cya
mkinzler
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 4106
Erhaltene Danke: 13


Delphi 2010 Pro; Delphi.Prism 2011 pro
BeitragVerfasst: Fr 27.01.06 15:32 
Unter Demos\ActiveX\OleAuto\ gibte es ein Beispiel ( Server + Client)

_________________
Markus Kinzler.
Aya Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 1964
Erhaltene Danke: 15

MacOSX 10.6.7
Xcode / C++
BeitragVerfasst: Fr 27.01.06 15:56 
Hi,

hm.. ok hab mir jetzt die AutoServ Demo angeschaut, scheint genau das zu sein was ich brauche und ist auch alles soweit klar.. Nuuuur... wie macht man die "Memo_TLB.pas"??

in der sind lauter CLSIDs etc, woher soll ich die wissen? :)

Und bei der AutoServ Demo ist dieses "Typenbibliothek" Fenster offen, aber bei meinem Programm ist der Eintrag für das Fenster im Menü deaktiviert = nicht anklickbar :)

Ich nehme an mit diesem Typenbibliothek-ding kann man die Memo_TLB.pas erstellen.. oder?

Au'revoir,
Aya

_________________
Aya
I aim for my endless dreams and I know they will come true!
mkinzler
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 4106
Erhaltene Danke: 13


Delphi 2010 Pro; Delphi.Prism 2011 pro
BeitragVerfasst: Fr 27.01.06 17:19 
Einfaches neues Projekt vom Typ "Typelib" anlegen und dass die Implemetationsunits hinzufügen.

_________________
Markus Kinzler.