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.