Delphi-PRAXiS

Delphi-PRAXiS (https://www.delphipraxis.net/forum.php)
-   Multimedia (https://www.delphipraxis.net/16-multimedia/)
-   -   Delphi MSWEBDVD - Unit??? (https://www.delphipraxis.net/46875-mswebdvd-unit.html)

beckz 2. Jun 2005 08:58


MSWEBDVD - Unit???
 
Habe ein Problem will eine Unit schreiben die auf die MSWEBDVD.dll aufsetzt, wie man diese einbindet und welche Methoden was tun weiß ich schon aber ich hab Probleme das in eine Unit einzubinden auf die ich dann zugreife!!

Delphi-Quellcode:
unit uMSWEBDVD;

interface

uses
  Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
  Dialogs, MSWEBDVDLib_TLB;


implementation

procedure play(DVD: TMSWebDVD);
begin
  DVD.DVDDirectory := 'E:\VIDEO_TS\';
  DVD.Play;
end;

end.
Ich binde diese Unit dann in meiner DVDPlayer-Unit ein aber er findet die procedure play nicht was mache ich falsch??

Bitte helft mir!

Khabarakh 2. Jun 2005 15:18

Re: MSWEBDVD - Unit???
 
Du musst die Prozedur noch im interface-Abschnitt deklarieren:
Delphi-Quellcode:
unit uMSWEBDVD;

interface

uses
  Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
  Dialogs, MSWEBDVDLib_TLB;

procedure play(DVD: TMSWebDVD);

implementation

procedure play(DVD: TMSWebDVD);
begin
  DVD.DVDDirectory := 'E:\VIDEO_TS\';
  DVD.Play;
end;

end.
PS: Mit Multimedia hat das ja eigentlich nichts zu tun, eher Pascal allgemein.


Alle Zeitangaben in WEZ +1. Es ist jetzt 22:07 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