Deutsch   English   Français   Italiano  
<lmb4h1F4ppiU13@mid.individual.net>

View for Bookmarking (what is this?)
Look up another Usenet article

Path: ...!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
From: rbowman <bowman@montana.com>
Newsgroups: comp.os.linux.advocacy
Subject: Re: Does Dimdows Know What Time It Is?
Date: 4 Oct 2024 21:20:33 GMT
Lines: 32
Message-ID: <lmb4h1F4ppiU13@mid.individual.net>
References: <vda0ko$1e457$1@dont-email.me> <vdc82s$1rmvl$1@dont-email.me>
	<hwmKO.36384$afc4.11514@fx42.iad> <vddgqf$24oap$1@dont-email.me>
	<bfyKO.37639$afc4.24519@fx42.iad> <vdg0pn$2k2ps$1@dont-email.me>
	<bmSKO.243830$v8v2.80772@fx18.iad>
	<pan$c95bb$cbe518b0$39a1d215$2736670b@linux.rocks>
	<vdhmn3$2sase$2@dont-email.me> <t41LO.34727$rIH3.25125@fx40.iad>
	<vdje0h$37qau$3@dont-email.me> <gfbLO.276631$FzW1.145242@fx14.iad>
	<vdjgsm$37qau$9@dont-email.me> <xLbLO.69482$2nv5.49161@fx39.iad>
	<vdm399$3nim2$1@dont-email.me> <lm84ndFlrc3U6@mid.individual.net>
	<vdmp8s$3r1an$3@dont-email.me> <lm9ccbFrnk8U5@mid.individual.net>
	<vdol1v$7656$1@dont-email.me>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
X-Trace: individual.net lvdLMEdefo1FNUpu0Ey2Kwslr/FWadKMY2lcmgDLTeay+OSY2Z
Cancel-Lock: sha1:SOWtIi6CxOLH6lrOFG/ZAaCQsoA= sha256:bC4C7Qo6iwYxaJQAJ9wlTtEGORD+k5JvpRyCrZSlo9Q=
User-Agent: Pan/0.149 (Bellevue; 4c157ba)
Bytes: 2737

On Fri, 4 Oct 2024 07:54:39 -0400, Chris Ahlstrom wrote:

> Actually that is preferable to an ever expanding database with legacy
> 32-bit stuff plus 64-bit duplicate stuff (and don't get me started on
> the system32 directory).

Yeah, SysWOW64 was one of MS's weirder moves. Odbcad32.exe was the real 
pisser. Both the 32 and 64 bit versions are called Odbcad32.exe. Our 
legacy programs are 32 bit so inadvertently using the 64bit one to create 
a DSN loads a 64bit driver which doesn't fly. 

> To me, it's nice to have one small config file for each "application".

Most of the later native Windows work I've done uses C# with a JSON 
configuration file. I create an installer that drops the exe, required 
dlls, and the configuration file in the specified directory. 

           IConfiguration config = new ConfigurationBuilder()
                .AddJsonFile("rangechecker.json")
                .AddEnvironmentVariables()
                .Build();


            string database = config["Database"];
            string dataType = config["DataType"];
            .....

makes it easy to pick up the specific configuration plus any global 
environment variables you need. I've gotten fond of C# and DotNet. With 
the exception of GUIs it is cross-platform. GUIs will be coming to Linux 
Real Soon Now. There have been a couple of attempts but it isn't an easy 
task given Gtk, Qt, and so forth.