Thema: Delphi Operator not applicable

Einzelnen Beitrag anzeigen

EWeiss
(Gast)

n/a Beiträge
 
#18

Re: Operator not applicable

  Alt 21. Apr 2007, 09:58
Zitat von mkinzler:
Delphi-Quellcode:
WmpEffects.GetPresetCount(IntVal);
result := IntVal;
Delphi-Quellcode:
function GetPresetCount(var count: LongInt): HRESULT;
Var
  IntVal: LongInt;

begin
  If Assigned(PWmpEffects) Then
    begin
       IntVal := 0;
       PWmpEffects.GetPresetCount(IntVal);
       result := IntVal;
       count := IntVal;

    end else
    result := -1;

end;
So gehts nun! Vielen Dank an alle die geholfen haben
Aber eine frage noch im Anhang warum geht es nicht über die direkte Abfrage
result := PWmpEffects.GetPresetCount(IntVal); nur auf deine weise ?

gruss Emil
  Mit Zitat antworten Zitat