Creating Modules (BASS Mod)

BlitzMax Forums/BlitzMax Programming/Creating Modules (BASS Mod)

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

oh, i see your LoadLibrary Code. If you work with DLL and LoadLibrary, see this :

strict 

const  DllName:string = "bass.dll"
local DllHandle = LoadLibraryA(DllName)

global BASS_Init:int(devive:int, freq:int, flags:int, win:int, clsid:int)"Win32" = GetProcAddress(DllHandle,"BASS_Init")


function FunctionExist(Func:byte ptr)
	if Int(Func)
		return true
	endif 
	return false 
end function 



print FunctionExist(BASS_Init)


If Not Bass_Init(0,44100,0,0,0)
	Print "ERROR!"
Else
	Print "OK!"
End If



I think that Code is a bit better to read and Use.
Mfg Suco