我有这样开始的应用程序:
using System;
using System.Diagnostics;
using System.Drawing;
using System.Drawing.Imaging;
using System.IO;
using System.Runtime.InteropServices;
using DirectShowLib;
using System.Collections.Generic;
using Extracting_Frames;
using System.Windows.Forms;
在它自己的应用程序中,我确实添加了一个参考浏览并选择了 DirectShowLib-2005.dll 一切正常,直到我从我的应用程序目录中复制调试应用程序 exe 文件,在我的情况下:LE.exe 将其复制到 D:\
一旦我运行它,我就会收到异常错误。所以我将文件 DirectShowLib-2005.dll 也复制到了 D:\,现在它可以工作了。
问题是当我试图从那里运行我的程序时,我如何使文件 DirectShowLib-2005.dll 将永远存在于应用程序中,而无需将其复制到硬盘上的任何位置?如果它的 d:\ E:\ 或任何其他位置。