PDA

Click to See Complete Forum and Search --> : My VB game.


Vernon
May 19th, 2000, 01:02 AM
I need help.

I have made an arkaniod game.
I have all the code and everything but the only thing is that I get an error when I try to run it.
I get:

run-time error '48':
File not found: MMSystem


But the thing is that I do have the file.

Please help me.
I am getting mad because it is pissing me off.

Thank you,


Vernon

ramdasv
May 19th, 2000, 01:06 AM
can you please add the relavent piece of code??

May 19th, 2000, 02:49 AM
Maybe it's some type of Multimedia. Are you using some type of sound or MIDI in your game?

Vernon
May 22nd, 2000, 11:18 PM
Here is the code that you wanted!!!!
The error is going to be showed by a =

Dim rc As Integer
Static NotFirstTime As Integer

If Not NotFirstTime Then
NotFirstTime = False
= rc = joyGetDevCaps(IDDevice, JoyCaps, Len(JoyCaps))

If rc <> 0 Then
GetJoyStickPos = rc
Exit Function
End If

JoyCaps.Xmax = uint_to_long(JoyCaps.XmaxIn)
JoyCaps.Xmin = uint_to_long(JoyCaps.XminIn)
JoyCaps.Ymax = uint_to_long(JoyCaps.YmaxIn)
JoyCaps.Ymin = uint_to_long(JoyCaps.YminIn)
JoyCaps.Zmax = uint_to_long(JoyCaps.ZmaxIn)
JoyCaps.Zmin = uint_to_long(JoyCaps.ZminIn)

End If

rc = joyGetPos(IDDevice, JoyInfo)
GetJoyStickPos = rc

If rc <> 0 Then Exit Function

JoyInfo.X = uint_to_long(JoyInfo.Xin)
JoyInfo.Y = uint_to_long(JoyInfo.Yin)
JoyInfo.Z = uint_to_long(JoyInfo.Zin)

JoyInfo.ButtonDown(1) = (JoyInfo.ButtonStates And JOY_BUTTON1) = JOY_BUTTON1
JoyInfo.ButtonDown(2) = (JoyInfo.ButtonStates And JOY_BUTTON2) = JOY_BUTTON2
JoyInfo.ButtonDown(3) = (JoyInfo.ButtonStates And JOY_BUTTON3) = JOY_BUTTON3
JoyInfo.ButtonDown(4) = (JoyInfo.ButtonStates And JOY_BUTTON4) = JOY_BUTTON4

End Function

JDeimund
May 24th, 2000, 04:21 AM
Could you post the line(s) where you declared that function that is returning the error. Also, what version of VB are you writing it in.

Vernon
May 29th, 2000, 08:55 PM
Here is the code that I am getting the error on:

rc = joyGetDevCaps(IDDevice, JoyCaps, Len(JoyCaps))



And I am using VB 6.

Please respond ASAP.

May 30th, 2000, 09:37 PM
hello,

im just curious how you get those

code:

----------------------

thingies where you can then type in vb code.

i know you guys think this is a simple question, but im stumped.

-thanks

-t_dawolf

gfurner
May 31st, 2000, 12:44 AM
i can't show you coz it'll do it, so just read forum rules and click on the vb code link.

Hope that helps

Vernon
Jun 11th, 2000, 08:36 PM
Hey!
Can anyone else help me with this project?
Because I need the help.

Please respond ASAP!!!


Thanks,

Vern