473,395 Members | 1,474 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

ini Files or Registry

Hi,

Just wanted to clarify , if I set up an application that requires the
connection for a sql database to setup by the user supplying the username
and password to connect, would it be best to save this info to the registry
or use an ini file.

I just wondered if there are any whitepapers or other source of infomation
on saving application setting such as these.

Thank alot

Neil
Nov 20 '05 #1
3 1029
afaik, ini-files are outdated...
Use registry or an xml file
Don't know which one would be best... maybe xml ... considering
system-privileges

greetz
Neil Steventon wrote:
Hi,

Just wanted to clarify , if I set up an application that requires the
connection for a sql database to setup by the user supplying the username
and password to connect, would it be best to save this info to the registry
or use an ini file.

I just wondered if there are any whitepapers or other source of infomation
on saving application setting such as these.

Thank alot

Neil


Nov 20 '05 #2
"Neil Steventon" <ne************@qualtronyc.co.uk> wrote in message
news:vv************@corp.supernews.com...
Hi,

Just wanted to clarify , if I set up an application that requires the
connection for a sql database to setup by the user supplying the username
and password to connect, would it be best to save this info to the registry or use an ini file.

I just wondered if there are any whitepapers or other source of infomation
on saving application setting such as these.

Thank alot

Neil


If you program is running on a single PC, then the registry would be Ok, but
if you application might be used on a network. Placed on a Shared drive that
severeal people have access to from multiple PC's, then a INI-file, XML or
any other type of file would be better, since that file would be with the
application.

Maybe progamming you applicaton so that you can supply an argument to where
the file is located would be even better. That way the Application could be
placed on a Public shared drive, and the Ini-file could then be located on
the User's Personal Drive.

Example:

'P is a public shared drive
P:\Myapp\app.exe

'H is the user's personal drive
H:\

'start argument
P:\Myapp\app.exe "H:\myfile.ini"

btw: Eudora uses this way of allowing the user to specify where to look for
the mail-box
Nov 20 '05 #3
In addition, you can use the Special System folders to store data that roams
accross the network along with the user profile.

See "Environment.GetFolderPath" and "ApplicationData" in the help files to
see how to get the path to this folder.

HTH,

Trev.

"Jarod_24" <ja******@hotmail.com> wrote in message
news:4c******************************@news.teranew s.com...
"Neil Steventon" <ne************@qualtronyc.co.uk> wrote in message
news:vv************@corp.supernews.com...
Hi,

Just wanted to clarify , if I set up an application that requires the
connection for a sql database to setup by the user supplying the username and password to connect, would it be best to save this info to the registry
or use an ini file.

I just wondered if there are any whitepapers or other source of infomation on saving application setting such as these.

Thank alot

Neil


If you program is running on a single PC, then the registry would be Ok,

but if you application might be used on a network. Placed on a Shared drive that severeal people have access to from multiple PC's, then a INI-file, XML or
any other type of file would be better, since that file would be with the
application.

Maybe progamming you applicaton so that you can supply an argument to where the file is located would be even better. That way the Application could be placed on a Public shared drive, and the Ini-file could then be located on
the User's Personal Drive.

Example:

'P is a public shared drive
P:\Myapp\app.exe

'H is the user's personal drive
H:\

'start argument
P:\Myapp\app.exe "H:\myfile.ini"

btw: Eudora uses this way of allowing the user to specify where to look for the mail-box

Nov 20 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Bob Olsson | last post by:
Hello all! I´m going to develop a windows smartclient and can´t find the information I need. Where do I store user-settings like paths, background colour and so on. I´ve read an article about...
8
by: Bob Kirkwood | last post by:
I believe the intent in .NET is that we store application setup information in an XML file now instead of the Registry or INI files. Is this correct? Are there any tools, sample apps, or...
2
by: Tim Blizard | last post by:
I know this topic has been discussed before but I couldn't find any thread more recent than about 18 months and was interested in what conclusions people had come to recently. Invariably 3...
22
by: Daniel Billingsley | last post by:
Ok, I wanted to ask this separate from nospam's ridiculous thread in hopes it could get some honest attention. VB6 had a some simple and fast mechanisms for retrieving values from basic text...
3
by: Herby | last post by:
Im rewriting a current MFC application for .NET using C++\CLI that compiles \clr SAFE. My application needs to read application settings, it used to do this from the old application ini file via...
7
by: eSolTec, Inc. 501(c)(3) | last post by:
Thank you in advance for any and all assistance. I have an application that pulls files, folders and registry keys of installed programs. I'm wanting to with a context menu selection of "Delete...
4
by: Bob Alston | last post by:
Can anyone tell me what are the files required for Replication manager and registry entries required? I think I read that there are 7 files and 3 registry entries but no specifics. I have...
4
by: zacks | last post by:
Most applications whose purpose is to work with various types of files implement a "Most Recent Files" list, where the last, say, four files accessed by the application can quickly be re-opened by...
7
by: flarefight | last post by:
I am trying to make a a simple databasing GUI interface and and have created a module to deal with parsing the data from a file and a GUI based program that displays this data using PyQt4, i know...
29
by: Guillaume Dargaud | last post by:
Hello all, anybody knows if there's some ANSI-C conformant code around that can read Windows-style .ini files ? I don't care about writing to it but I need to be able to read it from various OSs,...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.