Solved

Insert a function to Compiled EXE

Posted on 2006-07-07
3
181 Views
Last Modified: 2010-04-05
hi
i need a source code for add a function (Custom Code for Do Something) to entry Point of a Compiled EXE?
0
Comment
Question by:mahdiparak
  • 2
3 Comments
 
LVL 45

Accepted Solution

by:
aikimark earned 500 total points
ID: 17059550
1. Generally, a new/changed function isn't added to the entry point of a program.

2. You can more easily implement such changes through DLLs that implement the different functions.  Replacing the DLL would replace the function's actions.  The original function might be little more than a stub that does nothing but return.
0
 
LVL 1

Author Comment

by:mahdiparak
ID: 17061150
can you show me a source code for this?
0
 
LVL 45

Expert Comment

by:aikimark
ID: 17061243
<<can you show me a source code for this?>>
Not without gaining psychic abilities.  How should I know what your "Custom Code to Do Something" actually does?!?

Creating a DLL with Delphi is as simeple as selecting DLL as the type of project you want to create.

Alternative to a direct DLL call is to create an ActiveX DLL and instantiate the object inside your application.  Its methods would accomplish the "Do Something".

For your reading:
http://delphi.about.com/od/windowsshellapi/l/aa041100a.htm
0

Featured Post

Better Security Awareness With Threat Intelligence

See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

Join & Write a Comment

This article explains how to create forms/units independent of other forms/units object names in a delphi project. Have you ever created a form for user input in a Delphi project and then had the need to have that same form in a other Delphi proj…
Creating an auto free TStringList The TStringList is a basic and frequently used object in Delphi. On many occasions, you may want to create a temporary list, process some items in the list and be done with the list. In such cases, you have to…
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…
This video shows how to remove a single email address from the Outlook 2010 Auto Suggestion memory. NOTE: For Outlook 2016 and 2013 perform the exact same steps. Open a new email: Click the New email button in Outlook. Start typing the address: …

744 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

13 Experts available now in Live!

Get 1:1 Help Now