?
Solved

Insert a function to Compiled EXE

Posted on 2006-07-07
3
Medium Priority
?
187 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 46

Accepted Solution

by:
aikimark earned 1500 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 46

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

Want to be a Web Developer? Get Certified Today!

Enroll in the Certified Web Development Professional course package to learn HTML, Javascript, and PHP. Build a solid foundation to work toward your dream job!

Question has a verified solution.

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

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…
In my programming career I have only very rarely run into situations where operator overloading would be of any use in my work.  Normally those situations involved math with either overly large numbers (hundreds of thousands of digits or accuracy re…
Add bar graphs to Access queries using Unicode block characters. Graphs appear on every record in the color you want. Give life to numbers. Hopes this gives you ideas on visualizing your data in new ways ~ Create a calculated field in a query: …
In this video, Percona Solutions Engineer Barrett Chambers discusses some of the basic syntax differences between MySQL and MongoDB. To learn more check out our webinar on MongoDB administration for MySQL DBA: https://www.percona.com/resources/we…
Suggested Courses
Course of the Month10 days, 19 hours left to enroll

770 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