[Mono-dev] AppSettings, embedding C
Paolo Molaro
lupus at ximian.com
Wed Mar 22 13:30:08 EST 2006
On 03/22/06 vavra at software602.cz wrote:
> from C I call C# dll with code:
> System.Configuration.ConfigurationSettings.AppSettings["GroupwareRoot"];
>
> on Windows I have own config file tdav.exe.config (for executable tdav.exe):
> <configuration>
> <appSettings>
> <add key="GroupwareRoot" value="Groupware"/>
> </>
> </>
>
> How I tell C# dll to load this tdav.config?
> I tried mono_config_parse("tdav.config") with/without fullpath, but no success ;-(
You can load the data using C# code or you can read the xml file
yourself in C code (maybe using GMarkup). The mono embedding API is not
supposed to provide you a general-pourpose XML reading interface.
lupus
--
-----------------------------------------------------------------
lupus at debian.org debian/rules
lupus at ximian.com Monkeys do it better
More information about the Mono-devel-list
mailing list