Solved

Insert a function to Compiled EXE

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

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

The uses clause is one of those things that just tends to grow and grow. Most of the time this is in the main form, as it's from this form that all others are called. If you have a big application (including many forms), the uses clause in the in…
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…
Along with being a a promotional video for my three-day Annielytics Dashboard Seminor, this Micro Tutorial is an intro to Google Analytics API data.
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…

867 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

23 Experts available now in Live!

Get 1:1 Help Now