running 32 bit lazarus prgramme in 64 bit lazarus. Only bass not working

Started by stephanos,

stephanos

Dear All

I wrote a programme in 32 bit lazarus (i386-win32-win32/win64, Lazarus version 2.2.4, FPC: 3.2.2, Windows 11)

It is a playlist writer for my mp3 player.  One button calculates the play time of each entry in the playlist, adds the times together and tells me the hours, minutes and seconds or all the entries.  If my long car journey is likely to be longer I can add more files and recalculate the play time.

My best recollection is that I used the following two files:
   bass24\delphi\bass.pas
   bass24\bass.dll

This forum helped me a lot to achieve this very helpful programme.  Thanks to all again.

Now I want to write, compile and build programmes in 64 bit lazurus.  Naturally, I want to be able to modify my 32 bit programme using the 64 bit lazarus.  To this end I have installed 64 bit lazurus as an secondary installation and a separate configuration folder.  (x86_64-win64-win32/win64, Lazarus version 4.0, FPC: 3.2.2)
C:\lazarus
C:\Users\stephanos\AppData\Local\lazarus
and
C:\lazarus64
C:\Users\stephanos\AppData\Local\lazarus64

I made a separate project folder for the existing project and ran it using 64 bit lazarus.  It did not compile.  I was not surprised as I had noticed that there was a 64 bit bass.dll option found here:
   bass24\x64\bass.dll
The pass file remained unchanged: bass24\delphi\bass.pas.
So I copied that dll and overwrote the existing dll.  But the programme still did not compile.  I commented out all of the code run when pressing the button to calculate the play time.  The programme compiles and runs.  I am pretty certain that my issue is about bass and 64 bit.

Does bass support 64 bit lazarus?
Am I doing something wrong?

All other functions of the programme (written in 32 bit lazarus) are working in 64 bit lazarus.

Any help appreciated.

David_AVD

I'm a Delphi user not Lazarus, but doesn't it give you specific error messages about why it won't compile?

Chris

Bass will work under Delphi/Lazarus 64bit fine.
So Maybe some wrong Path ?
How do you load Bass.dll ? dynamically or static ?

stephanos

Dear All

Thanks for the input.  It took me 40 minutes to write this post and it was simply me forgetting to put bass.dll and bass.pas in the same folder as the .exe file.  All working file.  Another senior moment to add to the many gone before.  Silly me.