1.选中项目文件,找到Resources.resx,双击Resources.resx,然后添加文件(选择需要的dll文件),点击确定,项目下会自动生成一个Resources文件夹,里面包含添加dll. 2.在主窗体的后台代码添加下面事件,重现生成,之后把生成的exe文件拷贝到其他地方就可以直接使用了. 代码: public MainFrm() { AppDomain.CurrentDomain.AssemblyResolve += new ResolveEventHandler(CurrentD
Symptoms When accessing an STL object created in one DLL or EXE through a pointer or reference in a different DLL or EXE, you may experience an access violation or other serious program errors including the appearance of data corruption or data loss.