• 64 bit builds broken

    From Enrico Maria Giordano@21:1/5 to All on Wed Jan 24 16:06:18 2024
    Hi Ron, these changea broke 64 bit builds:

    2023-12-26 22:32 UTC-0500 Ron Pinkas <ronpinkas/AT/gmail/com>
    * source\rtl\dllcall.c
    * Fixed wrong nested structure of #ifdefs
    ! Fixed #ifdef HB_OS_WIN_32 to add '&& ! defined( HB_OS_WIN_64 )'
    * winmake/makefile.bc
    + Added NODLL_FLAG set to -DNODLL when HB_ARCH==w64

    It reverted my previous change:

    2022-11-14 10:47 UTC+0100 Enrico Maria Giordano
    <[email protected]>
    * source\rtl\dllcall.c
    ! always define LoadLibrary(), FreeLibrary() and GetLastError()
    functions for Win builds

    How did you do that? Can I fix it?

    --
    Enrico Maria Giordano

    http://www.emagsoftware.it
    http://www.emagsoftware.it/emgmusic
    http://www.emagsoftware.it/spectrum
    http://www.emagsoftware.it/tbosg

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Enrico Maria Giordano@21:1/5 to All on Wed Jan 24 16:08:46 2024
    Il 24/01/2024 16:06, Enrico Maria Giordano ha scritto:

    Hi Ron, these changea broke 64 bit builds:

    2023-12-26 22:32 UTC-0500 Ron Pinkas <ronpinkas/AT/gmail/com>
      * source\rtl\dllcall.c
        * Fixed wrong nested structure of #ifdefs
        ! Fixed #ifdef HB_OS_WIN_32 to add '&& ! defined( HB_OS_WIN_64 )'
      * winmake/makefile.bc
        + Added NODLL_FLAG set to -DNODLL when HB_ARCH==w64

    It reverted my previous change:

    2022-11-14 10:47 UTC+0100 Enrico Maria Giordano <[email protected]>
      * source\rtl\dllcall.c
        ! always define LoadLibrary(), FreeLibrary() and GetLastError() functions for Win builds

    How did you do that? Can I fix it?

    I forgot to mention that now I get the following errors compiling a PRG
    sample with a 64 bit compiler:

    error LNK2001: unresolved external symbol HB_FUN_GETLASTERROR
    error LNK2001: unresolved external symbol HB_FUN_LOADLIBRARY
    error LNK2001: unresolved external symbol HB_FUN_FREELIBRARY

    --
    Enrico Maria Giordano

    http://www.emagsoftware.it
    http://www.emagsoftware.it/emgmusic
    http://www.emagsoftware.it/spectrum
    http://www.emagsoftware.it/tbosg

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Enrico Maria Giordano@21:1/5 to All on Wed Jan 24 20:07:13 2024
    Il 24/01/2024 16:08, Enrico Maria Giordano ha scritto:

    I forgot to mention that now I get the following errors compiling a PRG sample with a 64 bit compiler:

    error LNK2001: unresolved external symbol HB_FUN_GETLASTERROR
    error LNK2001: unresolved external symbol HB_FUN_LOADLIBRARY
    error LNK2001: unresolved external symbol HB_FUN_FREELIBRARY

    This is a sample:

    FUNCTION MAIN()

    ? GETLASTERROR()

    INKEY( 0 )

    RETURN NIL

    Result with MSC32:

    2

    Result with MSC64:

    TEST.obj : error LNK2001: unresolved external symbol HB_FUN_GETLASTERROR

    I think that the 3 wrappers GETLASTERROR, LOADLIBRARY and FREELIBRARY
    should always be available, 32 bit and 64 bit under Windows.

    --
    Enrico Maria Giordano

    http://www.emagsoftware.it
    http://www.emagsoftware.it/emgmusic
    http://www.emagsoftware.it/spectrum
    http://www.emagsoftware.it/tbosg

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Enrico Maria Giordano@21:1/5 to All on Thu Jan 25 12:15:35 2024
    Il 24/01/2024 20:07, Enrico Maria Giordano ha scritto:

    I think that the 3 wrappers GETLASTERROR, LOADLIBRARY and FREELIBRARY
    should always be available, 32 bit and 64 bit under Windows.

    Ron, I'm still waiting for your OK...

    --
    Enrico Maria Giordano

    http://www.emagsoftware.it
    http://www.emagsoftware.it/emgmusic
    http://www.emagsoftware.it/spectrum
    http://www.emagsoftware.it/tbosg

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Ron Pinkas@21:1/5 to Enrico Maria Giordano on Wed Feb 7 21:03:42 2024
    Enrico Maria Giordano wrote:


    Il 24/01/2024 20:07, Enrico Maria Giordano ha scritto:

    I think that the 3 wrappers GETLASTERROR, LOADLIBRARY and FREELIBRARY should always be available, 32 bit and 64 bit under Windows.

    Ron, I'm still waiting for your OK...


    Sorry Enrico, I did not get here till just now - ye, its ok - sorry.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Enrico Maria Giordano@21:1/5 to All on Thu Feb 8 10:49:54 2024
    Il 08/02/2024 03:03, Ron Pinkas ha scritto:

    Sorry Enrico, I did not get here till just now - ye, its ok - sorry.

    Never mind, fixed with this:

    2024-01-26 23:50 UTC+0100 Enrico Maria Giordano
    <[email protected]>
    * source\rtl\dllcall.c
    ! always define LoadLibrary(), FreeLibrary() and GetLastError()
    functions for Windows builds

    --
    Enrico Maria Giordano

    http://www.emagsoftware.it
    http://www.emagsoftware.it/emgmusic
    http://www.emagsoftware.it/spectrum
    http://www.emagsoftware.it/tbosg

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