WPF Deploying with C++ DLL

巧了我就是萌 提交于 2020-06-29 04:05:50

问题


WPF interface and C ++ algorithm, Deploying with C++ DLL, to another computer for installation

  1. I tried "Generate" menu -"Publish" to generate exe file. It is OK to install it on the local computer, the problem : install it on another computers. "Missing application" error appear. I have found many ways:

  2. The DLL and config files are added to the program, but the missing files are still not resolved.

  3. At the same time when I generated the installation package, I also generated a manifest. I tried to copy both the exe and the generated manifest to another computer. The error changed to the following.

The following is a summary of the errors. The details of these errors are listed at the back of the log.

  • Activating C: \ Users \ FileStorage \ File \ 2020-02 \ Rimage.application caused an exception. The following failure messages were detected:
  • Download file: /// C: / Users / 40276 / OneDrive / FileStorage / File / 2020-02 / Application Files / Rimage_1_0_0_10 / Rimage.exe.manifest was unsuccessful.
  • Could not find part of the path "C: \ Users \ 40276 \ OneDrive \ FileStorage \ File \ 2020-02 \ Application Files \ Rimage_1_0_0_10 \ Rimage.exe.manifest".
  1. I tried Visual Studio "Window installer project", but I also have questions, a. The steps are a bit complicated. Can multiple "main outputs" work? You can add necessary files such as DLL in Application Folder, but some files are still missing. b\When I switch to a computer that is not connected to the Internet, I get the error "Missing opencv.Mat file". The project references “ livechart ”draw hist, "opencv"cutout, and pseudo color map. How can I publish it quickly and easily?

enter image description here

  1. Is there a better way to publish? and then install it on a different computer each time, such as " missing DLL or manifest " errors. Do I need to copy two files (exe \ manifest) to other computers for installation each time?

来源:https://stackoverflow.com/questions/61832020/wpf-deploying-with-c-dll

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!