How can I self-extract a binary resource (executable) using C++?

纵然是瞬间 提交于 2019-12-24 21:48:10

问题


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++.

How can I do it?

(Any help will be appreciated)


回答1:


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.



来源:https://stackoverflow.com/questions/13101278/how-can-i-self-extract-a-binary-resource-executable-using-c

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