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
Solved

Write in EXE-file

Posted on 1997-12-23
3
251 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

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

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.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Create Database on Android via Delphi dbExpress 3 112
Create a path if not exists 7 89
how to update exe applicatio from internet ? 6 87
Wincontrol not (correctly) drawn 15 40
Have you ever had your Delphi form/application just hanging while waiting for data to load? This is the article to read if you want to learn some things about adding threads for data loading in the background. First, I'll setup a general applica…
Introduction I have seen many questions in this Delphi topic area where queries in threads are needed or suggested. I know bumped into a similar need. This article will address some of the concepts when dealing with a multithreaded delphi database…
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…

861 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