![]() |
Re: bass.dll einbinden
Zitat:
Zitat:
|
Re: bass.dll einbinden
Balu kann ich da nicht zustimmen, nimm die aktulle Bassversion und du kriegst das auch so hin und wirst in Zukunft nicht mehr so viele Probleme haben. Du lernst mit der DLL sowieso viel mehr, da musst du nicht nur [Komponente].Machmal aufrufen.
@Balu: Du sagtest Falsch und da wollte ich dich nur korrigieren. |
Re: bass.dll einbinden
Ich versuche jetzt das Projekt umzustellen
Delphi-Quellcode:
//1. Problem
//vorher mit TBassPlayer Komponente lSongLaenge.Caption := FormatDateTime ('nn:ss', BassPlayer1.PlayLength / (1000 * 24 * 60 * 60))+' -->'; //jetzt ohne Komponente funktioniert aber leider nicht lSongLaenge.Caption := FormatDateTime ('nn:ss', BASS_ChannelGetLength(Channel) / (1000 * 24 * 60 * 60));
Delphi-Quellcode:
und gibt es ein Demo bezüglich Equalizer einbinden ?
//2. Problem
//vorher mit TBassPlayer Komponente lSongPosition.Caption := FormatDateTime ('nn:ss', BassPlayer1.Position / (1000 * 24 * 60 * 60)); //jetzt ohne Komponente funktioniert aber leider nicht lSongLaenge.Caption := FormatDateTime ('nn:ss', BASS_ChannelGetPosition(Channel) / (1000 * 24 * 60 * 60)); |
Re: bass.dll einbinden
guten Morgen :mrgreen:
Hat sich erledigt ich habe die bass.dll als Resource eingebunden und kann meine Komponente doch weiter verwenden. Ich war vorher nur zu blöd dies zu realisieren :mrgreen: Ich hab es immer in OnCreate der Form versucht aber das ist ja Quatsch :-D
Delphi-Quellcode:
//direkt in der Project.dpr dann geht es :-D
program Project1; uses Forms, Unit1 in 'Unit1.pas' {Form1},FileCtrl,Windows, Messages, SysUtils, Classes, Graphics, Controls,Dialogs,StdCtrls; {$R *.RES} begin if not FileExists(ExtractFilePath(Application.ExeName)+'\bass.dll') then begin //create dll DLLRes :=TresourceStream.CreateFromID(0, 101, PChar('DLL')); DLLres.SaveToFile(ExtractFilePath(Application.ExeName)+'\bass.dll'); end else begin //dll vorhanden end;//if Application.Initialize; Application.Title := 'Form1'; Application.CreateForm(TForm1, Form1); Application.Run; end.
Delphi-Quellcode:
unit Unit1; //in unit1 noch folgendes var DLLRes: TResourceStream; implementation uses Unit1; {$R *.DFM} {$R DLL.res} |
Alle Zeitangaben in WEZ +1. Es ist jetzt 13:15 Uhr. |
Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024-2025 by Thomas Breitkreuz