Results 1 to 3 of 3

Thread: storing data in actual program

  1. #1

    Thread Starter
    Member
    Join Date
    Sep 1999
    Location
    Westfield, IN, USA
    Posts
    59
    i know how to store data in text files and stuff... is it possible to store data in the actual program? that way it doesn't write external files? i don't want anyone to read the file that will be written, but i don't want to have to write encryption or anything... i'd prefer it to stay in the program itself..

    is this possible? or is my idea trash?

  2. #2
    Guest
    Use registry. And use encryption. Simplest encryptions code and decode with same function. It's not all that hard.

    A very simple (en)crypt for strings:
    Code:
    Public Function strCrypt (Text As String) As String
        Dim A As Integer
        strCrypt = ""
        For A = 1 To Len(Text)
            strCrypt = strCrypt & Chr(255 - Asc(Mid(Text, A, 1)))
        Next A
    End Function
    With some modifications you can make your very own crypter. I think best would be to make separated functions for crypting and decrypting.


    Btw, it's kinda possible to store in to the actual exe, but it's VERY hard to do without many tries and looking the program with hex-editor. Don't do it - if you get it working, you've to do it again if you update the program.


    Hope this helps,

  3. #3
    Hyperactive Member tumblingdown's Avatar
    Join Date
    Mar 2000
    Posts
    362
    take a look at PropertyBag


    td.
    "One logical slip and an entire scientific edifice comes tumbling down." - Robert M. Pirsig


    tumblingdown@hotmail.com

    "but if Einstein is right and God is in the details, reality requires that we sometimes get religion." - Scott Meyers.

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