Get Marinas-IDE version that has compiled my program
Previous topic  First topic  Next topic


When Marinas-IDE compiles our application will automatically passes a string with the Marinas-IDE version that you are using.
Cuando Marinas-IDE compila nuestra aplicacion le traspasa automaticamente un string con la version del Marinas-IDE que esta compilando.

This string is contained in the constant __MIH_VERSION__ and can be accessed like any other constant like the __DATE__ and __TIME__ compilation.
Dicho string esta contenido en la constante __MIH_VERSION__ y se puede acceder como cualquier otra constante al igual que el __DATE__ y __TIME__ de compilacion.

The string format is:
El formato del string es:

"VVRRBB"

where:

donde:

  • VV is the version
  • RR is the release
  • BB is the build
  • .

    For example, if __MIH_VERSION__ contains "030911" means:

    Por ejemplo: si __MIH_VERSION__ contiene "030911" significa:

    Version "03"
    Release "09"
    Build "11"

    Example usage:

    Ejemplo de uso:

    #include "marinas-gui.ch"

    Function main()
    mg_msgInfo( "Marinas-IDE Version: " + __MIH_VERSION__ )
    Return .T.


    This constant may be different for each compiled source if it had changed Marinas-IDE version and is not a full compilation of the project. A good idea to unify this data would be create a user function that resides in a module with FORCERECOMP (see: How to force the recompilation of modules automatically? for more information), so that from anywhere in our program that this function is invoked that will return the Marinas-IDE version that was used to compile the last time.
    Esta constante podría ser diferente en cada source compilado si se hubiera cambiado de version de Marinas-IDE y no se hace una compilacion full del proyecto. Una buena idea para unificar este dato sería crear una funcion de usuario que resida en un módulo con FORCERECOMP (ver: ¿Como forzar automaticamente la recompilacion de modulos? para mas informacion), de modo que desde cualquier lugar de nuestro programa se invoque dicha funcion que retornará la version de Marinas-IDE que se utilizó para compilar por ultima vez.

    For example: Define the following function in a source with FORCERECOMP and only need this function to speed up compilation
    Por ejemplo: Definir la siguiente funcion en un source con FORCERECOMP y que solo tenga dicha funcion para acelerar su compilacion

    Function MIH_Version()
    Return __MIH_VERSION__


    Since that time we may use the following syntax from anywhere in our application and will always return the Marinas-IDE version of the module in which the function is defined, and which have forced the recompile, corresponds to the last Marinas-IDE used:
    A partir de ese momento podriamos usar la siguiente sintaxis desde cualquier lugar de nuestra aplicación y siempre devolverá la version de Marinas-IDE del modulo en que esta definida dicha función, y que por tener forzada la recompilación, se corresponde con el último Marinas-IDE usado:

    mg_msgInfo( "Marinas-IDE Version: " + MIH_Version() )



    Marinas-GUI Version 03.06 and
    Marinas-IDE Version 05.06 and
    LEX Files Version 02.06


    ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
    last update: April 27
    2017
    ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------




    A Harbour/QT framework to make multiplatform programs

    (©) Copyright 2009-2017 by Fernando Santolin (aka CarozoDeQuilmes)
    CarozoDeQuilmes@gmail.com

    2009-2017 Beta tester and full English translator: Bruno Luciani
    Bruno.Luciani@gmail.com

    2014-2015 Final English corrector: David Worboys
    DavidWorboys@hotmail.com

    ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

    www.marinas-gui.org


    www.marinas-gui.org  

    Previous topic  First topic  Next topic