• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 189
  • Last Modified:

Insert a function to Compiled EXE

hi
i need a source code for add a function (Custom Code for Do Something) to entry Point of a Compiled EXE?
0
mahdiparak
Asked:
mahdiparak
  • 2
1 Solution
 
aikimarkCommented:
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
 
mahdiparakAuthor Commented:
can you show me a source code for this?
0
 
aikimarkCommented:
<<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

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now