Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

<app>.EXE.CONFIG file for VO gernerated programs?

93 views
Skip to first unread message

Fred Killet

unread,
Mar 1, 2021, 12:15:22 PM3/1/21
to
Is it possible to influence some settings for an EXE created with VO28
by means of a <app>.EXE.CONFIG file?

JohnMartens

unread,
Mar 1, 2021, 1:40:25 PM3/1/21
to
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:

Wolfgang Riedmann

unread,
Mar 2, 2021, 1:01:11 AM3/2/21
to
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

--

Frans Wauters

unread,
Mar 2, 2021, 2:49:24 AM3/2/21
to
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

Wolfgang Riedmann

unread,
Mar 2, 2021, 3:27:21 AM3/2/21
to
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
--

Phil McGuinness

unread,
Mar 2, 2021, 6:27:34 AM3/2/21
to
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
----


Fred Killet

unread,
Mar 2, 2021, 12:32:16 PM3/2/21
to
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.

Phil McGuinness

unread,
Mar 2, 2021, 1:03:11 PM3/2/21
to
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

JohnMartens

unread,
Mar 2, 2021, 1:04:11 PM3/2/21
to
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:
0 new messages