Solved

Write in EXE-file

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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Objective: - This article will help user in how to convert their numeric value become words. How to use 1. You can copy this code in your Unit as function 2. than you can perform your function by type this code The Code   (CODE) The Im…
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…
It is a freely distributed piece of software for such tasks as photo retouching, image composition and image authoring. It works on many operating systems, in many languages.
This tutorial demonstrates a quick way of adding group price to multiple Magento products.

744 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

11 Experts available now in Live!

Get 1:1 Help Now