Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/csharp/277.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
C# system.dllnotfoundexception无VS 2008 < >我的C代码加载一个C++ DLL。它在安装了VisualStudio2008的PC上运行良好。但在其他机器上,程序会异常停止 Unhandeled exception: system.dllnotfoundexception unable to load dll ... this application has failed becasue the application configuration is incorrect...._C#_C++_Visual Studio 2008_Dll - Fatal编程技术网

C# system.dllnotfoundexception无VS 2008 < >我的C代码加载一个C++ DLL。它在安装了VisualStudio2008的PC上运行良好。但在其他机器上,程序会异常停止 Unhandeled exception: system.dllnotfoundexception unable to load dll ... this application has failed becasue the application configuration is incorrect....

C# system.dllnotfoundexception无VS 2008 < >我的C代码加载一个C++ DLL。它在安装了VisualStudio2008的PC上运行良好。但在其他机器上,程序会异常停止 Unhandeled exception: system.dllnotfoundexception unable to load dll ... this application has failed becasue the application configuration is incorrect....,c#,c++,visual-studio-2008,dll,C#,C++,Visual Studio 2008,Dll,如何使此代码在未安装VS 2008的计算机上运行?如果您的DLL是自定义DLL,则必须将其与项目一起分发。如果不是,则必须使用自定义安装程序安装所需的DLL,或者如果它来自不同的提供程序,则必须安装它们的安装程序 post可能有点老,但是 DLL文件和.NET ClickOnce部署 我想将我的一个.NET应用程序部署为ClickOnce应用程序。问题是我正在连接到Oracle(请参阅前面的文章和此处)。连接到Oracle需要至少4个DLL文件,这些文件通常必须与EXE文件位于同一目录中。问题是

如何使此代码在未安装VS 2008的计算机上运行?

如果您的DLL是自定义DLL,则必须将其与项目一起分发。如果不是,则必须使用自定义安装程序安装所需的DLL,或者如果它来自不同的提供程序,则必须安装它们的安装程序

post可能有点老,但是

DLL文件和.NET ClickOnce部署

我想将我的一个.NET应用程序部署为ClickOnce应用程序。问题是我正在连接到Oracle(请参阅前面的文章和此处)。连接到Oracle需要至少4个DLL文件,这些文件通常必须与EXE文件位于同一目录中。问题是,当程序发布时,DLL不会以任何方式被引用,因此程序将无法工作

然后,我阅读了关于将文件添加到项目中的内容,这样ClickOnce和发布处理器就会发现DLL是必需的,并将它们添加到清单中

Here is the process in Visual Studio 2005:  
1. Put the 4 DLL files in their own directory in your solution directory (for ease of use mostly).  
2. Add all four files to your project by going to “Project->Add Existing Item…”  
3. Click on each DLL file in the solution explorer and then change their property: “Copy To Output Directory” to “Copy Always”.
就这样!现在,当我发布甚至运行应用程序时,我不必担心DLL文件是否位于它们应该位于的位置。

在vs 2008 on project中: 属性>c/c++>运行库>选择:多线程调试(/MTd)