Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.clipper.visual-objects > #13264 > unrolled thread
| Started by | Fred Killet <killet@killetsoft.de> |
|---|---|
| First post | 2021-03-01 18:15 +0100 |
| Last post | 2021-03-02 19:04 +0100 |
| Articles | 9 — 5 participants |
Back to article view | Back to comp.lang.clipper.visual-objects
<app>.EXE.CONFIG file for VO gernerated programs? Fred Killet <killet@killetsoft.de> - 2021-03-01 18:15 +0100
Re: <app>.EXE.CONFIG file for VO gernerated programs? JohnMartens <martens@tennishulp.info> - 2021-03-01 19:40 +0100
Re: <app>.EXE.CONFIG file for VO gernerated programs? "Wolfgang Riedmann" <wriedmann@gmail.com> - 2021-03-02 07:01 +0100
Re: <app>.EXE.CONFIG file for VO gernerated programs? Frans Wauters <info@wautersit.com> - 2021-03-01 23:49 -0800
Re: <app>.EXE.CONFIG file for VO gernerated programs? "Wolfgang Riedmann" <wriedmann@gmail.com> - 2021-03-02 09:27 +0100
Re: <app>.EXE.CONFIG file for VO gernerated programs? Phil McGuinness <sherlocksoftware@gmail.com> - 2021-03-02 03:27 -0800
Re: <app>.EXE.CONFIG file for VO gernerated programs? Fred Killet <killet@killetsoft.de> - 2021-03-02 18:32 +0100
Re: <app>.EXE.CONFIG file for VO gernerated programs? Phil McGuinness <sherlocksoftware@gmail.com> - 2021-03-02 10:03 -0800
Re: <app>.EXE.CONFIG file for VO gernerated programs? JohnMartens <martens@tennishulp.info> - 2021-03-02 19:04 +0100
| From | Fred Killet <killet@killetsoft.de> |
|---|---|
| Date | 2021-03-01 18:15 +0100 |
| Subject | <app>.EXE.CONFIG file for VO gernerated programs? |
| Message-ID | <s1j7f8$vvi$2@gwaiyur.mb-net.net> |
Is it possible to influence some settings for an EXE created with VO28 by means of a <app>.EXE.CONFIG file?
[toc] | [next] | [standalone]
| From | JohnMartens <martens@tennishulp.info> |
|---|---|
| Date | 2021-03-01 19:40 +0100 |
| Message-ID | <s1jceo$cde$1@dont-email.me> |
| In reply to | #13264 |
What settings you want to influence ? I'm building a .PRG file before I complile the EXE in which eg versionname is linked from the .PRG file John Op 1-3-2021 om 18:15 schreef Fred Killet: > Is it possible to influence some settings for an EXE created with VO28 > by means of a <app>.EXE.CONFIG file?
[toc] | [prev] | [next] | [standalone]
| From | "Wolfgang Riedmann" <wriedmann@gmail.com> |
|---|---|
| Date | 2021-03-02 07:01 +0100 |
| Message-ID | <ia62l6FfqkgU1@mid.individual.net> |
| In reply to | #13264 |
Hi Fred, > Is it possible to influence some settings for an EXE created with > VO28 by means of a <app>.EXE.CONFIG file? of course this is possible if your application uses that file instead of an ini file, the registry or other settings. But automatically, without doing anything, it will not have any effect. In .NET it works because many libraries read their configuration optionally from that file - and of course you can change only the settings where the respective libraries are providing that possibility. Wolfgang --
[toc] | [prev] | [next] | [standalone]
| From | Frans Wauters <info@wautersit.com> |
|---|---|
| Date | 2021-03-01 23:49 -0800 |
| Message-ID | <69f0619b-c70d-41ce-8909-977237a504cen@googlegroups.com> |
| In reply to | #13268 |
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-custom-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
[toc] | [prev] | [next] | [standalone]
| From | "Wolfgang Riedmann" <wriedmann@gmail.com> |
|---|---|
| Date | 2021-03-02 09:27 +0100 |
| Message-ID | <ia6b76Fhdc3U1@mid.individual.net> |
| In reply to | #13269 |
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 --
[toc] | [prev] | [next] | [standalone]
| From | Phil McGuinness <sherlocksoftware@gmail.com> |
|---|---|
| Date | 2021-03-02 03:27 -0800 |
| Message-ID | <bb01bad0-395b-4fd5-941d-8cc2bf9726b2n@googlegroups.com> |
| In reply to | #13270 |
Snip[ I don't like the idea to have the configuration in the program path as it may be hard to change it. ] Absolutely......... for a say VO app with EXE and DLL those files should be where the EXE resides. SetDefault( ......... path .......) to say DBF/FPT/CDX ........... Works without fail.. If say SQL connect via IP / URL to data. In a transistion from older DBF/FPT structure to say POSTGRES.. we export all data and change Path to IP for data. With Files that might have been paths we have webservice to store files rather than in the SQL. Never had an issues with this approach. Anybody developed a system running TEAMS.. this one future step for us. Phil ----
[toc] | [prev] | [next] | [standalone]
| From | Fred Killet <killet@killetsoft.de> |
|---|---|
| Date | 2021-03-02 18:32 +0100 |
| Message-ID | <s1lsqv$6fb$1@gwaiyur.mb-net.net> |
| In reply to | #13264 |
Am 01.03.2021 um 18:15 schrieb Fred Killet: > Is it possible to influence some settings for an EXE created with VO28 > by means of a <app>.EXE.CONFIG file? What I mean is to tell the ready compiled and linked EXE the path to the needed VO28 DLLs. In this case I do not like to set the Environment variable PATH.
[toc] | [prev] | [next] | [standalone]
| From | Phil McGuinness <sherlocksoftware@gmail.com> |
|---|---|
| Date | 2021-03-02 10:03 -0800 |
| Message-ID | <1637056b-5e0a-4e9e-a3bf-0e3ffc17c551n@googlegroups.com> |
| In reply to | #13272 |
snip[ > Is it possible to influence some settings for an EXE created with VO28 by means of a <app>.EXE.CONFIG file? ] Fred If APP the EXE and DLLS in same place / folder nothing you have to.. What I have is data folders under this and use SETdefault() a relative path in the app. No need to do anything else it will work. Phil
[toc] | [prev] | [next] | [standalone]
| From | JohnMartens <martens@tennishulp.info> |
|---|---|
| Date | 2021-03-02 19:04 +0100 |
| Message-ID | <s1lumq$5nd$1@dont-email.me> |
| In reply to | #13272 |
Whats the problem to put the EXE in the same dir as the VO DLL's and your own DLL's ? Op 2-3-2021 om 18:32 schreef Fred Killet: > Am 01.03.2021 um 18:15 schrieb Fred Killet: >> Is it possible to influence some settings for an EXE created with VO28 >> by means of a <app>.EXE.CONFIG file? > > What I mean is to tell the ready compiled and linked EXE the path to the > needed VO28 DLLs. In this case I do not like to set the Environment > variable PATH.
[toc] | [prev] | [standalone]
Back to top | Article view | comp.lang.clipper.visual-objects
csiph-web