• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 172
  • Last Modified:

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;
         CHAN : HSTREAM;
    chan := BASS_StreamCreateFile(FALSE, 'C:\charlie rich - the most beautiful girl', 0,0,0);
    BASS_StreamPlay(chan, FALSE, BASS_SAMPLE_LOOP);

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
1 Solution
I am completely unfamiliar with the BASS_StreamCreateFile routine, but given the error message that you are getting, I am going to guess that the song title parameter should be PChar. Try this:

chan := BASS_StreamCreateFile(FALSE,PChar('C:\charlie rich - the most beautiful girl'), 0,0,0);

Good luck!!
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now