如何在vc ++资源中添加图像或从中获取图像 [英] how to add and retrieve a image to/from vc++ resource
本文介绍了如何在vc ++资源中添加图像或从中获取图像的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
大家好,
我正在编写一个应用程序,需要将图像添加到资源文件中,然后从资源文件中检索并将其保存到桌面中的任何位置.
在此先谢谢您.
Hi All,
i am writing an application and the need is, add a image to the resource file and retrieve from resource file and save it to any location in my desktop.
Thanks in advance.
推荐答案
看看本文 XResFile-存储在资源中的文件:第1部分-文本和二进制文件 [
Have a look at this article XResFile - Files Stored in Resources: Part 1 - Text and Binary[^], in particular the bit about binary files.
Once you''ve loaded the image from the resource file, you have a binary buffer, which can then be written to disk using the standard File I/O functions
非常感谢Graham .我会尝试的.
Thank You very much Graham. i will try this out.
这篇关于如何在vc ++资源中添加图像或从中获取图像的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文