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!!
Printable View
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!!
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).
You can also use the "savestring" "getstring" to store stuff in the registry.
Just type in "SaveSettings" and you'll undersand the rest of the syntax.Code:SaveSetting "MyProgram", "save", "x", x
x = GetSetting("MyProgram", "save", "x", 1)
Gl,
D!m
How about using your resource file? For static data, it is great.
i have seen a project at planetsourcecode that allows you to merge a file into your exe file
try it out maybe?