Link to home
Start Free TrialLog in
Avatar of Dinkleburger
Dinkleburger

asked on

Song wont Play

Hello ALL
I am writing A DLL
and have problem with the procedure below
It wont play the song...


///////////////////////// CODE  ////
Procedure CREATE;
         Var
         CHAN : HSTREAM;
       
Begin
Chan:=0;
 BASS_StreamFree(chan);
    chan := BASS_StreamCreateFile(FALSE, 'C:\charlie rich - the most beautiful girl', 0,0,0);
    BASS_StreamPlay(chan, FALSE, BASS_SAMPLE_LOOP);
     end;

//////
AS you can see the song is in C:\
the error message i get for this is

uncompatible type String and Pointer.

But this same code works in a normal delphi app
but not from My DLL
Thanks in advance Dinkleburger
ASKER CERTIFIED SOLUTION
Avatar of DrDelphi
DrDelphi

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial