Solved

Embeding exe file

Posted on 2000-02-26
5
124 Views
Last Modified: 2010-05-18
Hello!

Is it possible to embed an external executable file in my application, so that there would be only one (the main)executable file?

Thanks
0
Comment
Question by:eruj
5 Comments
 
LVL 7

Expert Comment

by:ahalya
ID: 2561933
You can make your EXE more like a "Self Extracting" exe, and extract all support files when your exe is run.

if you like this approach, and would like some source, then I can email one of my similar project to you.
0
 
LVL 1

Expert Comment

by:XAN
ID: 2562315
of course. you can use it as resource.

other way ;) you can have one executable file, and other - any other type, that actually is external executable (may be only you will know about the nature of last ;)
0
 
LVL 6

Accepted Solution

by:
DrDelphi earned 50 total points
ID: 2562501
This example assumes that you have created a resource file named "Resfile.res" with the executable and named it "EXE". See my webpage for detials on how to do this if you are not sure.


{$resource 'resfile.res'}


var Stream:TresourceStream;
begin
     stream:=Tresourcestream.Create(Hinstance,'EXE','RT_RCDATA');
     stream.SaveToFile('Zoomer2.exe');
     Winexec('Zoomer2.exe',sw_ShowMaximized);
end;



Good luck!!

0
 
LVL 5

Expert Comment

by:Gwena
ID: 2563593
Hi DrDelphi :-)

  Where is your webpage?
0
 
LVL 6

Expert Comment

by:DrDelphi
ID: 2563630
www.drdelphi.com

Search for "Resource"
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
How to convert wav to mp3 in delphi 9 169
Newbie Thread Programming 1 139
Delphi inherited method 6 62
FMX and jaudiotracker playing memory stream 29 66
Introduction The parallel port is a very commonly known port, it was widely used to connect a printer to the PC, if you look at the back of your computer, for those who don't have newer computers, there will be a port with 25 pins and a small print…
Hello everybody This Article will show you how to validate number with TEdit control, What's the TEdit control? TEdit is a standard Windows edit control on a form, it allows to user to write, read and copy/paste single line of text. Usua…
In this video I am going to show you how to back up and restore Office 365 mailboxes using CodeTwo Backup for Office 365. Learn more about the tool used in this video here: http://www.codetwo.com/backup-for-office-365/ (http://www.codetwo.com/ba…
Video by: Mark
This lesson goes over how to construct ordered and unordered lists and how to create hyperlinks.

911 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now