www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.learn - .Exe file how to embed in resource after start program

reply "Ali GOREN" <goren.ali yandex.com> writes:
Hi.

Sorry for my bad english.

I want to embed .exe file in resources my program.

Etc.

Y.JAR embed => DProgram.Exe

after

if start

DProgram.exe

Y.Jar program start. :)

I'm very, very sorry. Because very bad my english.

Thanks :)
Jul 01 2013
parent reply =?UTF-8?B?QWxpIMOHZWhyZWxp?= <acehreli yahoo.com> writes:
On 07/01/2013 12:28 PM, Ali GOREN wrote:

 Sorry for my bad english.
Please don't say that. :) Thank you very much for writing in English so that we can understand you. I don't have an answer to your question though... :-/ Ali
Jul 01 2013
parent reply "Ali GOREN" <goren.ali yandex.com> writes:
On Monday, 1 July 2013 at 20:11:40 UTC, Ali Çehreli wrote:
 On 07/01/2013 12:28 PM, Ali GOREN wrote:

 Sorry for my bad english.
Please don't say that. :) Thank you very much for writing in English so that we can understand you. I don't have an answer to your question though... :-/ Ali
Hmm thank you very much :) i want to embed because high security program :(
Jul 01 2013
parent =?UTF-8?B?TWFydGluIERyYcWhYXI=?= <drasar ics.muni.cz> writes:
Dne 1.7.2013 23:03, Ali GOREN napsal(a):
 On Monday, 1 July 2013 at 20:11:40 UTC, Ali Çehreli wrote:
 On 07/01/2013 12:28 PM, Ali GOREN wrote:

 Sorry for my bad english.
Please don't say that. :) Thank you very much for writing in English so that we can understand you. I don't have an answer to your question though... :-/ Ali
Hmm thank you very much :) i want to embed because high security program :(
Hi, one way, not necessarily the optimal one, that works in Windows: - save the exe as a string in a file, like: enum prog = '...'; and compile it to your wrapping program - 1) run the wrapping program, write the prog to disk and call CreateProcessEx (it requires file in the filesystem) - 2) run the wrapping program, memory map the prog and then try to follow this guide at StackOverflow (the one with 21 upvotes) http://stackoverflow.com/questions/305203/createprocess-from-memory-buffer Both approaches have their pros and cons and you should tread carefully, especially if you say that this should be about high security... Regards, Martin
Jul 01 2013