Okay, I've found some other source in this forum that helped me. The following code without mod works fine:
but, the following mod-source doesn't work:
Does somebody know why? When I compile the module everthing seems okay, but then when I try to compile an BlitzMax-App I get the following error:
Compiling:test.bmx
flat assembler version 1.51
3 passes, 3649 bytes.
Linking:test.debug.exe
C:/Dokumente und Einstellungen/Jochen/Desktop/BMax/bin/ld.exe: cannot find
Local dll:Int = LoadLibraryA("bass.dll") If (dll=0) Then RuntimeError "Bass.DLL not found" Local addr:Int = Int(GetProcAddress(dll,"BASS_Init")) Global BASS_Init:Int(device:Int, freq:Int, flags:Int, win:Int, clsid:Int) "win32" (Int Ptr(Varptr(BASS_Init)))[0]=addr If Not Bass_Init(0,44100,0,0,0) Print "ERROR!" Else Print "OK!" End If WaitKey End
but, the following mod-source doesn't work:
Strict Module imw.Bass ModuleInfo "Name: Bass BlitzMax Module" ModuleInfo "Description: Wrapper Moduler for BASS Audio Engine" Import "libbass.a" Extern "win32" Function BASS_Init:Int(device:Int, freq:Int, flags:Int, win:Int, clsid:Int) End Extern
Does somebody know why? When I compile the module everthing seems okay, but then when I try to compile an BlitzMax-App I get the following error:
Compiling:test.bmx
flat assembler version 1.51
3 passes, 3649 bytes.
Linking:test.debug.exe
C:/Dokumente und Einstellungen/Jochen/Desktop/BMax/bin/ld.exe: cannot find