Solved

Alternative for "GetSetting" and "SaveSetting"

Posted on 2004-10-01
3
667 Views
Last Modified: 2012-05-07
Hi

      I am using VB6. How can we store some data with in our application without writing it either to registry or to any external file?Presently i am using  "GetSetting" and "SaveSetting"
functions. Is there any alternative method to do the same. my need is to store some secure strings safely within the application, also while running the application i need to modify the string and update it safely back.
Thanks in Advance
Riyasjef
0
Comment
Question by:riyasjef
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 

Assisted Solution

by:reapesuk
reapesuk earned 100 total points
ID: 12203056
I actually don't know of any way of storing and modifying data that would be still available once your program has terminated.

Obviously, you can store CONSTANT values by using CONST sValue as string ="my settings"

But you cannot write to a CONSTANT.

Why, can't you save the settings to an ini file for example in your programs install directory and encrypt the data? This way the settings are secure.

Jim
0
 
LVL 86

Accepted Solution

by:
Mike Tomlinson earned 300 total points
ID: 12203075
You can store the values in your EXE either as hardcoded values or as part of a resource file, but then you won't be able to modify them.

If you need the strings to be "secure" then you can encrypt them before writing them to the registry or to a file.  You can use something like MD5:

http://www.freevbcode.com/ShowCode.asp?ID=3779

~IM
0
 
LVL 32

Assisted Solution

by:Erick37
Erick37 earned 100 total points
ID: 12203418
Although it is *possible* to store data at the end of your executable file it is not a good idea.  If you ever do an upgrade or version change all of the data will be erased.  You would need to encrypt it anyway to secure the information.

0

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

If you have ever used Microsoft Word then you know that it has a good spell checker and it may have occurred to you that the ability to check spelling might be a nice piece of functionality to add to certain applications of yours. Well the code that…
You can of course define an array to hold data that is of a particular type like an array of Strings to hold customer names or an array of Doubles to hold customer sales, but what do you do if you want to coordinate that data? This article describes…
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

738 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question