Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 74
Default .INI versus Registry

Hi,

i have an application witch i saved on a netwerk drive as a template
in a folder named TEMPLATE.
The application contains a worksheet with the 'common' settings as
template location, printer names, ...
I have 2 PC's that i use to run this application.
When i read this forum there are 2 possibilities to store settings, in
a .INI file or save it in the REGISTRY (Getsetting / Savesetting).

I suppose that, when saving it into the registry that this is on the
local machine where the application (copy of the template) runs.
This means then that the 'common' setting need to be available on
every machine where this application runs, are am i wrong?

This is where i see the advantage of a .INI file versus the registry
because this can be also on the network drive and common to all PC's
where the application runs.
the application runs.

I'm still on Win XP professional & Office 2003, but don't know for how
long.

So my question is: what would you recommand to use, a .INI file or the
Registry?

Regards,
Ludo
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 449
Default .INI versus Registry

Very very simplified: The registry follows the user profile. When I log on,
my own saved preferences are loaded. An ini file with a hardcoded path will
load last saved no matter who saved it.

So this depends on what you're about to do. "Last used invoice number"
definitely in an ini file type of thing, "preferred color theme" definitely
in the registry.

HTH. Best wishes Harald



"Ludo" wrote in message
...
Hi,

i have an application witch i saved on a netwerk drive as a template
in a folder named TEMPLATE.
The application contains a worksheet with the 'common' settings as
template location, printer names, ...
I have 2 PC's that i use to run this application.
When i read this forum there are 2 possibilities to store settings, in
a .INI file or save it in the REGISTRY (Getsetting / Savesetting).

I suppose that, when saving it into the registry that this is on the
local machine where the application (copy of the template) runs.
This means then that the 'common' setting need to be available on
every machine where this application runs, are am i wrong?

This is where i see the advantage of a .INI file versus the registry
because this can be also on the network drive and common to all PC's
where the application runs.
the application runs.

I'm still on Win XP professional & Office 2003, but don't know for how
long.

So my question is: what would you recommand to use, a .INI file or the
Registry?

Regards,
Ludo


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 74
Default .INI versus Registry

On 31 aug, 16:16, "Harald Staff" wrote:
Very very simplified: The registry follows the user profile. When I log on,
my own saved preferences are loaded. An ini file with a hardcoded path will
load last saved no matter who saved it.

So this depends on what you're about to do. "Last used invoice number"
definitely in an ini file type of thing, "preferred color theme" definitely
in the registry.

HTH. Best wishes Harald

"Ludo" wrote in message

...



Hi,


i have an application witch i saved on a netwerk drive as a template
in a folder named TEMPLATE.
The application contains a worksheet with the 'common' settings as
template location, printer names, ...
I have 2 PC's that i use to run this application.
When i read this forum there are 2 possibilities to store settings, in
a .INI file or save it in the REGISTRY (Getsetting / Savesetting).


I suppose that, when saving it into the registry that this is on the
local machine where the application (copy of the template) runs.
This means then that the 'common' setting need to be available on
every machine where this application runs, are am i wrong?


This is where i see the advantage of a .INI file versus the registry
because this can be also on the network drive and common to all PC's
where the application runs.
the application runs.


I'm still on Win XP professional & Office 2003, but don't know for how
long.


So my question is: what would you recommand to use, a .INI file or the
Registry?


Regards,
Ludo- Tekst uit oorspronkelijk bericht niet weergeven -


- Tekst uit oorspronkelijk bericht weergeven -


Thanks Harald for this explanation.
Ludo
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
XLA versus Reference versus Nothing Jos Vens[_2_] Excel Programming 2 April 11th 05 08:54 AM
Best Way to Read the Registry? JK Excel Programming 3 October 25th 04 05:55 PM
Value from Registry Roy Lasris Excel Programming 3 February 23rd 04 11:53 PM
Registry Tom Ogilvy Excel Programming 1 July 16th 03 01:02 AM
Registry Patrick Molloy[_4_] Excel Programming 0 July 15th 03 12:45 PM


All times are GMT +1. The time now is 04:39 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"