Path: csiph.com!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail From: "Wolfgang Riedmann" Newsgroups: comp.lang.clipper.visual-objects Subject: Re: .EXE.CONFIG file for VO gernerated programs? Date: Tue, 2 Mar 2021 09:27:17 +0100 Lines: 39 Message-ID: References: <69f0619b-c70d-41ce-8909-977237a504cen@googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 X-Trace: individual.net Kk/b+M8vsO3TmOgKR/3pTAJM/Ln4fYOj/nzvLarX1sUVQWZO0= Cancel-Lock: sha1:5IfCJj5srowVeAaj8xOb4WYDGRs= User-Agent: XanaNews/1.18.1.6 Xref: csiph.com comp.lang.clipper.visual-objects:13270 Hi Frans, I don't like the idea to have the configuration in the program path as it may be hard to change it. Therefore I'm putting in in the data path (for global settings) or in the AppData path (for individual settings). Wolfgang Frans Wauters wrote: > Hi, > > exe.config is just an XML file that your program or some routines in > .NET ( and C# ) can use. See: > https://docs.microsoft.com/en-us/troubleshoot/dotnet/csharp/store-cust > om-information-config-file Still your program needs the right > libraries - or you need to write some code - to be able to use and > take control of this file. > > The equivalent for this are the good old .ini files what does the > same, but in 2021+ it seems old scool. > > Your VO application ( WIN/32 C code; not C# and not .NET ) needs to > the have the right routines to manage that file. You can create an > exe.config file, but you need to write your code in your program; > just as for .ini files. I only "looks" moderner than ini files :) > > Alternative, you can have these settings in other types ( database, > JSON, or ... ) > > Kind regards, > Frans --