HighTechTalks DotNet Forums  

DLL configuration files

Dotnet Framework (CLR) microsoft.public.dotnet.framework.clr


Discuss DLL configuration files in the Dotnet Framework (CLR) forum.



Reply
 
Thread Tools Search this Thread Display Modes
  #11  
Old   
Peter Wu
 
Posts: n/a

Default Re: DLL configuration files - 10-02-2006 , 08:27 PM






On Mon, 2 Oct 2006 21:57:13 +0000 (UTC), GhostInAK wrote:

Quote:
Hello Peter,

A feedback system whereby the DLL passes the settings back to the main
app for storage and retreval.
Can you please give me some code snippet that can address the scenario I
put forward in my response to your message the other day?

If the caller app is not aware of/not interested in how the
implementations work, how can the caller app handle the "feedback"?

Quote:
DLLs should not, ever, have config files.
Can you shed some light on this? Or point us to some books or articles
that support your view?


--
Peter Wu
Powered by Gentoo GNU/Linux 2.6.17


Reply With Quote
  #12  
Old   
Peter Thornqvist
 
Posts: n/a

Default Re: DLL configuration files - 10-03-2006 , 02:57 PM






Quote:
A feedback system whereby the DLL passes the settings back to the main app
for storage and retreval.
If I understand you correctly, you mean something like this:

public interface IAppInterface
{
...
public void LoadPluginSettings(string PluginName, out string [] Settings);
public void SavePluginSettings(string PluginName, string [] Settings);
}

IAppInterface is of course accessible from the plugin(s). I realize that
this might not be exactly what you mean, but maybe close?

--
Regards, Peter




Reply With Quote
  #13  
Old   
Ben Voigt
 
Posts: n/a

Default Re: DLL configuration files - 10-05-2006 , 05:26 PM



"Peter Thornqvist" <peter.tornqvist (AT) gmail (DOT) com> wrote

Quote:
A feedback system whereby the DLL passes the settings back to the main
app for storage and retreval.

If I understand you correctly, you mean something like this:

public interface IAppInterface
{
...
public void LoadPluginSettings(string PluginName, out string []
Settings);
public void SavePluginSettings(string PluginName, string [] Settings);
}

IAppInterface is of course accessible from the plugin(s). I realize that
this might not be exactly what you mean, but maybe close?
This has been around for a few years before .NET. The application is
supposed to pass a "PropertyBag" to each component it instantiates which the
component can customize for its needs, cache user settings, etc.

Quote:
--
Regards, Peter




Reply With Quote
Reply




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.