简体   繁体   English

在.NET应用程序中使用DLL

[英]using a DLL in a .NET applications

i want to add a class library to my project in C# 2008 and that class library is a wrapper for a C++ library. 我想在我的C#2008项目中添加一个类库,并且该类库是C ++库的包装。 i added the reference to the .NET wrapper and it says io.notfind exception. 我添加了对.NET包装的引用,并显示io.notfind异常。 i copied C++ DLLs to my project and again it says file not find exception. 我将C ++ DLL复制到我的项目中,再次说文件找不到异常。 what can i do to fix this? 我该怎么解决? the original C++ libraries where 2 DLLS that has lib files to but i did not copy those lib files because as i know they are for static linking 原始的C ++库中有2个具有lib文件的DLLS,但是我没有复制那些lib文件,因为据我所知,它们用于静态链接

the library that i want to use is "awesomium" and the wrapper is awesomiumdotnet 我要使用的库是“ awesomium”,包装器是awesomiumdotnet

您可以使用depends.exe来检查是否缺少任何依赖项(通常会导致FileNotFoundException

  1. You add a dependency manually or by using VS? 您是手动添加依赖关系还是使用VS? Proper way is use of VS. 正确的方法是使用VS。
  2. When error occurs? 什么时候发生错误? When you run application or when you compile it? 什么时候运行应用程序或何时编译?

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM