I've been working on a .NET library. Of course .NET has a good way of working with configurations, and therefore I can document to library users what they should put in their app.config.
However I've also to expose the library as a COM object, for legacy support. Some users of the library will be VB6 applications, which doesn't have a app.config concept.
I know I can "fudge" the file using OpenExeConfiguration, along with naming, but that causes me other issues.
Is there a common way to initialise your COM based library? Worst case, I can expose an initialise method, which takes all of the initialisation parameters as individual parameters, but I fear that this makes it difficult to add new initialisation parameters, as it results in breaking the API interface.
I guess I'm thinking of passing something like an Array of key, value pairs, but before I do this, is there a "standard" way that I'm not considering?