Delphi-PRAXiS

Delphi-PRAXiS (https://www.delphipraxis.net/forum.php)
-   Sonstige Fragen zu Delphi (https://www.delphipraxis.net/19-sonstige-fragen-zu-delphi/)
-   -   Delphi MSAgent Annimationen auflisten (https://www.delphipraxis.net/57760-msagent-annimationen-auflisten.html)

Jens Schumann 26. Nov 2005 07:40


MSAgent Annimationen auflisten
 
Hallo,
ich habe ein Problem beim Auflisten der möglichen Annimationen.
Ich verwende folgende Code
Delphi-Quellcode:
Merlin         : IAgentCtlCharacterEx;
...
procedure TFormMerlin.AgentAnimationEnum(L : TStrings);
var
  AEnum          : IEnumVariant;
  AnimationNames : IAgentCtlAnimationNames;
  Fetch          : Cardinal;
  V              : OleVariant;
begin
  AEnum:=Merlin.AnimationNames.Enum as IEnumVariant;
  AEnum.Reset;
  L.Clear;
  Repeat
    AEnum.Next(1,V, Fetch);
    If VarToStr(V) <> EmptyStr then
      L.Add(V);
  Until Fetch = 0;
end;
Wenn ich den Source mit D5 compiliere läuft die Sache einwandfrei. Verwende ich jedoch D7 erzeugt der
Aufruf von
Delphi-Quellcode:
AEnum:=Merlin.AnimationNames.Enum as IEnumVariant;
folgenden Fehler.
Code:
Zugriffsverletzung bei der Adresse FFFFFFF
Das Problem ist, das Merlin.AnimationNames ins Leere zeigt.
Kennt jemand eine Lösung für D7?


Alle Zeitangaben in WEZ +1. Es ist jetzt 08:06 Uhr.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024 by Thomas Breitkreuz