Einzelnen Beitrag anzeigen

shmia

Registriert seit: 2. Mär 2004
5.508 Beiträge
 
Delphi 5 Professional
 
#10

Re: Plugin-System mit Interfaces und DLLs

  Alt 23. Mär 2006, 15:11
xaromz hat die Sache schon (fast) richtig erlärt:
Delphi-Quellcode:
var
  MyInterface: IMyInterface;
begin
  MyInterface := TMyClass.Create;
  MachWas(MyInterface); // "MyInterface" übergeben, nicht "MyClass"
// MyInterface := nil; // diese Zeile sparen wir uns, da "MyInterface" automatisch "out-of-scope" gerät
end;
Andreas
  Mit Zitat antworten Zitat