Autor Beitrag
Klabautermann
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Veteran
Beiträge: 6366
Erhaltene Danke: 60

Windows 7, Ubuntu
Delphi 7 Prof.
BeitragVerfasst: Mi 06.02.08 13:35 
Hallo,

vorweg ich kenne mich mit der ganzen COM Geschichte nicht besonders gut aus, deshalb ist es möglich, dass die Frage völlig banal ist aber leide habe ich keine Antwort auf diese finden können.

Wie kann ich ermitteln, ob ein Bestimmter COM-Server bereits installiert ist?

Gruß
Klabautermann
Andreas Schilling
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 128
Erhaltene Danke: 1

WIN XP, WIN 7
Delphi 5 Ent, Delphi 2007 Pro, XE4
BeitragVerfasst: Mi 06.02.08 14:08 
ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
uses ActiveX;

function Pruefe_COM: boolean;
  var tmp : TGUID;
      OK : boolean;
      ProgID : widestring;
begin
  progID := 'XXX.App';
  OK := Succeeded(CLSIDFromProgID(PWideChar(Progid), tmp));
  result := OK;
end;


Für XXX.app ist der richtige Name des Com-Server einzusetzen.
Klabautermann Threadstarter
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Veteran
Beiträge: 6366
Erhaltene Danke: 60

Windows 7, Ubuntu
Delphi 7 Prof.
BeitragVerfasst: Mi 06.02.08 17:30 
Dankeschön, werde ich gleich mal probieren.