Hey Brad and ultragotcha,
Any luck resolving the issue?
I am facing a similar problem - I am writing a dll in VC++ with an exported function that will initialize a joystick and apply force-feedback using DirectInput. Since SetCooperativeLevel needs a handle to a window (HWND) so that it can be accessed, I am having trouble initializing ...