bass.pas compatible Delphi 3 ?

Started by fredstap,

fredstap

Hello everybody. In your doc you said that bass.pas was compatible with Delphi 3.
Unforgently in your codes i find, for example QWORD = int64; and int64 is not a Delphi 3 variable. I have change int64 into longint , it compile but when i try your samples, even when i change "If BASS_GetVersion() <> MAKELONG(1,7)", it compile but when i play a mp3 or wav the pc crash.
Have you got any idea, have you realy test bass.pas with Delphi 3 ? Please help me, witch code must i change : int64 into cardinal or longint, something else ?

Of course i must use Delphi6 but i know (i do sharewares) that Delphi3 is very more stable.

Ian @ un4seen

"Longint" won't work because that is only 32-bit, whereas "int64" is 64-bit. So the stack will be out of whack, and it'll crash, when calling functions that take 64-bit parameters (BASS_ChannelBytes2Seconds, BASS_ChannelSetPosition, BASS_ChannelSetSync).

I'm no Delphi expert, but see if changing it to "comp" works. I believe that is the old Delphi 64-bit type.