Thema: Delphi Operator not applicable

Einzelnen Beitrag anzeigen

EWeiss
(Gast)

n/a Beiträge
 
#16

Re: Operator not applicable

  Alt 21. Apr 2007, 09:46
So gehts jetzt bis auf einen Fehler

Delphi-Quellcode:
function GetPresetCount(var count: LongInt): HRESULT;
Var
  IntVal: LongInt;
  WmpEffects: IWmpEffects;

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

    end else
    result := -1;

end;
result := WmpEffects.GetPresetCount(IntVal);
[Pascal Error] WMPUnit.pas(222): E2010 Incompatible types: 'HRESULT' and 'procedure, untyped pointer or untyped parameter'

Gruss Emil
  Mit Zitat antworten Zitat