0
0

I am some trouble with 3.63 and delphi 4.

Sorry for my poor english, I am french 😆

  • You must to post comments
0
0

Yes it works with Delphi.

  • You must to post comments
0
0

3.63 is optimized for delphi 7, I think. I had lots of trouble running it with delphi 5 myself, but now with delphi 7 everything works fine.

  • You must to post comments
0
0

I believe the only problems with earlier versions are PSingle and THandle. If that is the problem you are having, then add this to the top of fmodtypes.pas.

type
PSingle = ^Single;
THandle = Cardinal;

If that is not the problem, then what is the problem you are having?

  • You must to post comments
0
0

Thank you Sly, it’s work fine but i am 2 errors a gain

FIRST

[Erreur] Fmod.pas(507): Identificateur attendu(e) mais ‘FUNCTION’ trouvé(e)

Function FMOD_Load(LibName: PChar): Boolean;
begin
Result := True;

end;

SECOND
[Erreur] Fmod.pas(516): Identificateur non déclaré : ‘FMOD_DLL’

  • You must to post comments
0
0

I’m not sure what those errors mean in that I cannot understsnd them. Is it French?

The second error looks like undeclared identifier, which is probably true for Delphi 4. FMOD.PAS uses the MSWINDOWS define. At the top of FMOD.PAS you will see

[code:3cfd77ef]{$ifdef FPC}
{$MODE DELPHI}
{$ifdef Win32} {$define MSWINDOWS} {$endif}
{$endif}[/code:3cfd77ef]

Change this to

[code:3cfd77ef]{$ifdef FPC}
{$MODE DELPHI}
{$endif}
{$ifdef Win32} {$define MSWINDOWS} {$endif}[/code:3cfd77ef]

That will make the second error go away.

For the first error, I’m guessing it might be that Delphi 4 did not know about default parameters. Look for the following line

[code:3cfd77ef]function FMOD_Load(LibName: PChar {$ifndef FPC}= nil{$endif}): Boolean;[/code:3cfd77ef]

and change it to

[code:3cfd77ef]function FMOD_Load(LibName: PChar): Boolean;[/code:3cfd77ef]

Hopefully that will work for you.

  • You must to post comments
0
0

Oops. New installation of XP and I forgot to login before replying. 😳

  • You must to post comments
Showing 6 results
Your Answer

Please first to submit.