C#exe程序获取图像并复制自身并将图像嵌入到一个单独的exe文件中。

编程入门 行业动态 更新时间:2024-10-11 15:23:43
本文介绍了C#exe程序获取图像并复制自身并将图像嵌入到一个单独的exe文件中。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

您好, 如果我需要编写一个带有图像的c#应用程序(或其他文件本身显示)。如何添加功能,使该应用程序生成自己的副本与嵌入在该exe副本中的所选图像(或其他文件)? 之后,新生成的exe必须加载嵌入的图像当它打开时。

Hello, If I need to write a c# application that takes an image (or other file to display in itself). How to add the functionality to make that app produce a copy of itself with the selected image (or other file) embedded in that copy of exe? After that, The new produced exe must load the embedded image when it is opened.

推荐答案

实际上将图像数据嵌入到exe中是一个不好的主意:在许多(如果不是全部)情况下,这将被视为可能是病毒活动通过病毒扫描程序。此外,这意味着实际软件版本的版本控制将成为一个完整的噩梦。 相反,为什么不将它保持独立,并提供应用程序始终引用的特定文件名,或者配置文件中文件的路径? 这样更简单,更安全...... Actually embedding the image data into the exe is a poor idea: in many (if not all) cases, that will be considered as "probably virus activity" by virus scanners. In addition, it means that the version control of actual software revisions gets to be a complete nightmare. Instead, why not keep it separate, and either provide a specific file name which your application always references, or a path to the file in a configuration file? It's a lot simpler, and a lot safer...

更多推荐

C#exe程序获取图像并复制自身并将图像嵌入到一个单独的exe文件中。

本文发布于:2023-11-13 06:01:11,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1583638.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:图像   并将   文件   程序   exe

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!