如何使用C ++自解压二进制资源(可执行文件)? [英] How can I self-extract a binary resource (executable) using C++?

查看:125
本文介绍了如何使用C ++自解压二进制资源(可执行文件)?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要提取一个二进制资源(在我的项目中),但是我想不出任何办法,因为我正在使用Windows/C ++.

I need to extract a binary resource (that's in my project) however, I cannot think of any way I can do it, I'm using Windows/C++.

我该怎么办?

(任何帮助将不胜感激)

(Any help will be appreciated)

推荐答案

此问题 ,请注意,您需要知道资源的 type 和名称(或顺序),才能找到副本的资源.

FindResource, SizeofResource, LoadResource, and LockResource are used in concert to gain access to "the file" held in the resource table of the module your reading. A reasonable sample of how to do this can be found at this question, Note that you need to know the resource type and name (or ordinal), to find it for the copy.

这篇关于如何使用C ++自解压二进制资源(可执行文件)?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆