Monitoring force feedback joystick

Hello

For my senior design project, I need to be able to use force feedback function of the logitech force 3d pro joystick to guide the user in doing targeting task. When the cursor moves out of the box, the controller need to move to opposite direction to bring back the cursor inside the box.

Based on my research, I found out that I need to create DLL in C/C++/C# to control the joystick's driver in DirectX. I found some sample codes written in C# however, I have no background in programming, so I don't know where to begin.
http://msdn.microsoft.com/en-us/library/windows/desktop/bb153254%28v=vs.85%29.aspx
http://www.codeproject.com/Articles/24412/Force-Feedback-in-Managed-DirectX
I tried running this sample codes, but I cannot run it.

I need to do accomplish this using C++. I couldn't find anything for C++ approach. All I found was this.
https://code.msdn.microsoft.com/windowsdesktop/DirectInput-Samples-8ac6f5e3/sourcecode?fileId=121930&pathId=1254520005

If you know anything about this, feel free to reply. Thank you!
Topic archived. No new replies allowed.