如何从exe文件生成exe文件 [英] How to generate exe file from exe file

查看:126
本文介绍了如何从exe文件生成exe文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嘿,



我有一个问题,我还没有找到答案,但是(虽然我一直在寻找一些时间,但是知道要问什么短语来得到答案):

如何从exe文件生成exe文件?



我用一些游戏引擎(UDK,Unity)制作了一些游戏和原型,并且自己用C ++制作了一些程序。但是我不知道如何制作一个程序(比如UDK)我可以做的东西,点击BUILD我得到一个exe文件,里面有我做的东西。



我认为制作一个游戏引擎可能很难(而且很耗时)但我想知道它是如何工作的,我可以从另一个程序制作一个程序。

Hey,

I have a question for which I haven't found the answer, yet (though I've been looking for some time, just don't know what phrase to ask to get the answer):
How to generate an exe file from exe file?

I've made some games and prototypes with some game engines (UDK, Unity) and have made some programs in C++ on my own. But I don't know how to make a program (like UDK) where I can do stuff, click BUILD and I get an exe file with stuff that I made.

I presume that making a game engine might be hard (and time consuming) but I would like to know how does it work that I can make a program from another program.

推荐答案

您无需将其全部放入单个可执行文件中。与许多程序一样,您可以使用像dll这样的库。例如,与使用opengl相同。您包含头文件,以便编译器可以知道库中可用的定义。实际代码已经在编译库中。作为开发人员,这对您来说也非常有效和好,因为每次要运行程序时都不需要编译完整的库。



您可以查看如何部署UDK / Unity游戏。



祝你好运!
You don't need to put it all into a single executable. As with a lot of programs, you can use libraries like dll's. It is the same like working with opengl for example. You include the header files so the compiler can knows the definitions available in the library. The actual code is already in a compiled library. This is also very efficient and nice for you as a developer because you don't need to compile the complete library every time you want to run your program.

You could just check out how a UDK/Unity game can be deployed.

Good luck!


获取它的一种相对简单的方法是使应用程序可编写脚本,例如参见通过托管JScript构建脚本应用程序 [ ^ ]。换句话说,您将部署相同的可执行文件,由用户的脚本自定义。
One relatively simple way for obtaining that would be making an application scriptable, see, for instance "Building Scriptable Applications by hosting JScript"[^]. In other words you would deploy all the times the same executable, customized by the user's scripts.


您需要深入了解PE EXE格式。检查以下链接可能会引导您前往方向。其中一个想法可能是复制原始可执行文件并将代码/数据注入新创建的文件中。请检查以下链接



将代码注入可移植可执行文件 [ ^ ]



深入了解Win32可移植可执行文件格式 [ ^ ]



如果搜索在运行时创建PE头,你可以找到很多信息
You need to have a deep understanding of PE EXE format. Check below link might lead you to a direction. One of the idea could be to duplicate the original executable file and inject your code/data in the newly created file. Check below link

Inject your code to a Portable Executable file[^]

An In-Depth Look into the Win32 Portable Executable File Format[^]

you can find lots of information if you search for "creating PE header in runtime"


这篇关于如何从exe文件生成exe文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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