• .EXE.CONFIG file for VO gernerated programs?

    From Fred Killet@21:1/5 to All on Mon Mar 1 18:15:19 2021
    Is it possible to influence some settings for an EXE created with VO28
    by means of a <app>.EXE.CONFIG file?

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From JohnMartens@21:1/5 to All on Mon Mar 1 19:40:24 2021
    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?

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Wolfgang Riedmann@21:1/5 to Frans Wauters on Tue Mar 2 09:27:17 2021
    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



    --

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Phil McGuinness@21:1/5 to All on Tue Mar 2 03:27:33 2021
    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
    ----

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Frans Wauters@21:1/5 to All on Mon Mar 1 23:49:23 2021
    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

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Wolfgang Riedmann@21:1/5 to All on Tue Mar 2 07:01:07 2021
    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

    --

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Phil McGuinness@21:1/5 to All on Tue Mar 2 10:03:08 2021
    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

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Fred Killet@21:1/5 to All on Tue Mar 2 18:32:15 2021
    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.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From JohnMartens@21:1/5 to All on Tue Mar 2 19:04:12 2021
    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.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)