Userlibs + Executables

BlitzPlus Forums/BlitzPlus Programming/Userlibs + Executables

Pineapple(Posted 2008) [#1]
This may be a stupid question, but at first glance I can't find any answers.

I wrote a program for somebody which used this DLL: http://www.blitzbasic.com/toolbox/toolbox.php?tool=25

When I compiled the code and gave it to him, he said that he got an error 'userlib not found'. How do I correct this?



Global cmd$=Trim(Replace(CommandLine(),Chr(34),""))

Global par1$=ToChar(cmd,0)
Global par2$=ToChar(cmd,1)

If Lower(par1)="file" ;play a sound file
	If FileType(par2)=1
		PlayMusic par2
	EndIf
Else
	SystemBeep(par1,par2)
EndIf

End


Function ToChar$(txt$,which=0,char$=",")
	Local ow=which
	.beginf
	Local ret$="",sloc=0
	Repeat
		sloc=sloc+1
		If Mid(txt,sloc,1)=char Then 
			If which=0 
				If ret=""
					which=ow+1
					Goto beginf
				Else
					Exit
				EndIf
			Else
				which=which-1
				ret=""
			EndIf
		Else
			ret=ret+Mid(txt,sloc,1)
		EndIf
		If sloc>Len(txt) Return Trim(ret) ;If there's no space, return to the end.
	Forever
	Return (ret)
End Function



Beaker(Posted 2008) [#2]
You need the Beep DLL in the same folder as your application.


T David(Posted 2008) [#3]
Hoping Beaker is right, cause I dont have a clue LOL :)


Pineapple(Posted 2008) [#4]
Yea, that was it. Thanks.


Zeachco(Posted 2008) [#5]
Is there a way that BlitzPlus include DLL in folder when compiling... i am just wondering for all lazy people... if does not exist yet i will try to find a way (^^,)


andy_mc(Posted 2008) [#6]
Once I programmed on a 200 MHz with 32 RAM and a super-hyper-mega-powerfull Voodoo3 Graphics card
LOL, I used to have a 486dx33 when I started at Uni, I started a java programming course but the PC would take over 30 seconds to compile simple programs. I upgraded to a P133 laptop and thought that was amazingly fast.
Now I have a 4200+ Dual core Athlon and am thinking of upgrading to a E8500 Intel, just think what I'll be upgrading to given another ten years time.