Click here to Skip to main content
15,867,835 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi
I have some problems with adding a reference to XInput1_4.dll in Visual Studio. When I try to do that I get error:
Quote:
A reference to the "....dll" could not be added.Please make sure that the file is accessible and that it is a valid assembly or COM component.

It will be nice if someone will explain this step by step.

What I have tried:

I tried to solve this by using TlbImp.exe and it doesn't work.
Posted
Updated 16-May-16 6:32am

1 solution

You don't add a reference to it: it's not a .NET assembly, it's a "traditional" windows DLL file.
It's a part of DirectX, so you wouldn't normally try to use it directly from a .NET application.
 
Share this answer
 
Comments
Member 12524399 16-May-16 12:50pm    
Ok, so how can I use Xinput? I meam, I am able to use this:

using SlimDX.DirectInput;

but I don't know exacly how to use Xinput.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900