|
-
Sep 7th, 2003, 06:44 AM
#1
Thread Starter
Hyperactive Member
Store Data
Is is possible to store data in a .exe file? I want to store some text in exe (No database , No another File). Thanks for reply
-
Sep 7th, 2003, 06:49 AM
#2
Not NoteMe
Will you want to edit the text at all?
Quotes:
"I am getting better then you guys.." NoteMe, on his leet english skills.
"And I am going to meat her again later on tonight." NoteMe
"I think you should change your name to QuoteMe" Shaggy Hiker, regarding NoteMe
"my sweet lord jesus. I've decided never to have breast implants" Tom Gibbons
Have I helped you? Please Rate my posts. 
-
Sep 7th, 2003, 06:54 AM
#3
Thread Starter
Hyperactive Member
Yes I want to use this text for read & edit.
-
Sep 7th, 2003, 07:27 AM
#4
Not NoteMe
I'm not sure, but i don't think this is possible. Or at least it would be very difficult.
You'd obviously get read/write issues, because you can't edit an exe when it's running. Also, i don't think you could simply say 'MemoryLocationInEXE = "A String". It would be a lot more difficult.
If the reason you want to do this is because you don't want anyone editing your files, then you could search this forum for an encryption algorythm, as there are many.
Quotes:
"I am getting better then you guys.." NoteMe, on his leet english skills.
"And I am going to meat her again later on tonight." NoteMe
"I think you should change your name to QuoteMe" Shaggy Hiker, regarding NoteMe
"my sweet lord jesus. I've decided never to have breast implants" Tom Gibbons
Have I helped you? Please Rate my posts. 
-
Sep 7th, 2003, 06:44 PM
#5
-
Sep 7th, 2003, 07:49 PM
#6
Fanatic Member
It is not hard at all.. You can create your own data structures... e. g.
Code:
Type mystruct_t
Name As string * 10
Age As Integer
Gender As Integer
End Type
Dim profile as mystruct_t
you can then seek to the end of the file and PUT this info. You can read it back out bo seeking to the end of the file but then subract the length of the structure.. e.g Len(profile), gets sizeof mystruct_t and then do a GET to get the data back out...
As far as manavo11's post... You can't hide data. You can only protect it from prying eyes... Besides that, there are many uses for storing data after the exe structures...
-
Sep 7th, 2003, 07:59 PM
#7
-
Sep 7th, 2003, 10:13 PM
#8
Fanatic Member
I guess thats why microsoft put a Find function in regedit. Don't know the reg keys/values you say? Try a hexeditor.
-
Sep 8th, 2003, 04:33 PM
#9
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|