|
-
Sep 14th, 2000, 02:27 PM
#1
Thread Starter
Lively Member
Does anyone know how to store and retrieve the data stored in the VB executable file(*.exe) itself. I know how to do this in Quick Basic, but how do you do this in VB? Thanks!!
VB6(SP4), QB4.5, PDS7.0, IBM-U2
-
Sep 14th, 2000, 02:40 PM
#2
Monday Morning Lunatic
Are you using resources, or just appending it to the EXE? If the latter, have a variable in your program, and set its value to the offset of the data in the file. I'm sure there's a better way, but couldn't find it (I needed this a while back).
I refuse to tie my hands behind my back and hear somebody say "Bend Over, Boy, Because You Have It Coming To You".
-- Linus Torvalds
-
Sep 14th, 2000, 04:52 PM
#3
Fanatic Member
You can also use the "savestring" "getstring" to store stuff in the registry.
Code:
SaveSetting "MyProgram", "save", "x", x
x = GetSetting("MyProgram", "save", "x", 1)
Just type in "SaveSettings" and you'll undersand the rest of the syntax.
Gl,
D!m
-
Sep 14th, 2000, 06:26 PM
#4
Addicted Member
How about using your resource file? For static data, it is great.
-
Sep 15th, 2000, 02:18 AM
#5
Conquistador
i have seen a project at planetsourcecode that allows you to merge a file into your exe file
try it out maybe?
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
|