Results 1 to 5 of 5

Thread: Store data in VB executable file???

  1. #1

    Thread Starter
    Lively Member quadoc's Avatar
    Join Date
    Jan 1999
    Location
    Ga, USA
    Posts
    83

    Question

    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

  2. #2
    Monday Morning Lunatic parksie's Avatar
    Join Date
    Mar 2000
    Location
    Mashin' on the motorway
    Posts
    8,169
    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

  3. #3
    Fanatic Member Dim's Avatar
    Join Date
    Jul 2000
    Posts
    620
    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
    Dim

  4. #4
    Addicted Member
    Join Date
    Jan 2000
    Location
    Fresno, California, USA
    Posts
    195
    How about using your resource file? For static data, it is great.

  5. #5
    Conquistador
    Join Date
    Dec 1999
    Location
    Australia
    Posts
    4,527
    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
  •  



Click Here to Expand Forum to Full Width