Solved

Write in EXE-file

Posted on 1997-12-23
3
249 Views
Last Modified: 2010-04-04
Is it possible to write information in the middle of the executive file, which run this program, and then read this information?
0
Comment
Question by:Alexey090397
  • 2
3 Comments
 
LVL 1

Accepted Solution

by:
peter_vc earned 50 total points
ID: 1354501
Sure this can be done, but I'm still not convinced that it's a good idea.  The trick is to define a string that serves as a marker.  Fill a string with ZZZ123ZZZ123 or some similar byte pattern.  Then scan the file looking for that sequence and replace it.  You will have to be carefull with the string length depending on if you use a string or a PChar.  When the program is run, it will see the new data as the string.
0
 

Author Comment

by:Alexey090397
ID: 1354502
Thank you, but if you think that it is not a good idea then help me where to I can write(hide)  2 real numbers. Please, show the working example of such program.
0
 
LVL 1

Expert Comment

by:peter_vc
ID: 1354503
Write them to the registry (Win95) or a text file (any platform) and encypt them.  What are you trying to do?  Copy protection?  Registration codes?


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

A lot of questions regard threads in Delphi.   One of the more specific questions is how to show progress of the thread.   Updating a progressbar from inside a thread is a mistake. A solution to this would be to send a synchronized message to the…
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…
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…
Many functions in Excel can make decisions. The most simple of these is the IF function: it returns a value depending on whether a condition you describe is true or false. Once you get the hang of using the IF function, you will find it easier to us…

863 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

19 Experts available now in Live!

Get 1:1 Help Now