Solved

Insert a function to Compiled EXE

Posted on 2006-07-07
3
185 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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

In this tutorial I will show you how to use the Windows Speech API in Delphi. I will only cover basic functions such as text to speech and controlling the speed of the speech. SAPI Installation First you need to install the SAPI type library, th…
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…
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…
Exchange organizations may use the Journaling Agent of the Transport Service to archive messages going through Exchange. However, if the Transport Service is integrated with some email content management application (such as an antispam), the admini…

733 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