如何在C#中添加对xinput1_4.dll的引用? [英] How can I add reference to xinput1_4.dll in C#?

查看:341
本文介绍了如何在C#中添加对xinput1_4.dll的引用?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好b $ b

我在Visual Studio中添加对XInput1_4.dll的引用时遇到一些问题。当我尝试这样做时,我得到错误:

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:

无法添加对.... dll的引用。请制作确保该文件是可访问的,并且它是一个有效的程序集或COM组件。

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.



如果有人会逐步解释这个将会很好。



我尝试了什么:



我试图通过使用TlbImp.exe来解决这个问题t。工作。


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.

推荐答案

你没有添加对它的引用:它不是.NET程序集,它是一个传统的windows DLL文件。

它是DirectX的一部分,因此您通常不会尝试直接从.NET应用程序中使用它。
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.


这篇关于如何在C#中添加对xinput1_4.dll的引用?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆