使用FMOD的C#? [英] Using FMOD for C#?

查看:657
本文介绍了使用FMOD的C#?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我和FMOD工作在C#。我试着通过选择项目 - >添加引用和浏览用于导入 fmodex.dll 文件中的 fmodex.dll ,但我得到一个错误:

I'm working with FMOD in C#. I've tried importing the fmodex.dll file by selecting Project->Add Reference and browsing for the fmodex.dll, but I am getting an error:

要...引用无法添加。请确保该文件是可访问的,而且它是一个有效的集会或COM组件

A reference to ... could not be added. Please make sure that the file is accessible, and that it is a valid assembly or COM component

这是可访问的,但我仍然得到错误。我读了指南,它说,使用 fmodex_vc.lib 链接到 fmodex.dll 文件时。所以我尝试,但我似乎无法找到如何链接到.LIB在Visual Studio中的文件;谷歌搜索总是使我链接到.dll文件。

It is accessible, but I still get the error. I read the guide and it says to use the fmodex_vc.lib when linking to the fmodex.dll file. So I try, but I can't seem to find on how to link to .lib files in Visual Studio; searching Google always leads me to linking to .dll files.

推荐答案

FMOD是写在非托管C ++,所以你不能直接引用它.Net应用程序。有交流#包装到一个名为fmod_wrapper如果我没有记错的话,你可以添加到您的项目,这将使得P /调用你的关心目录下的FMOD包fmodex.dll。

Fmod is written in unmanaged C++ so you cannot reference it directly from a .Net application. There is a c# wrapper to the fmodex.dll in the fmod package under a directory called "fmod_wrapper" if I am not mistaken that you can add to your project and which will take care of making the P/Invoking for you.

这篇关于使用FMOD的C#?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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