FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour error with nExtMem()
Posts: 417
Joined: Tue Feb 23, 2010 03:09 PM
Re: error with nExtMem()
Posted: Thu Sep 22, 2011 12:12 PM

Thanks.

Hope is fixed in FW 11.09?.

What about xBrowse and Win 7 look?.

FWH 11.11, Harbour 3.1 and Borland C++ 5.82
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: error with nExtMem()
Posted: Thu Sep 22, 2011 01:28 PM

John,

Already included for FWH 11.09:

  • Enhancement: function nExtMem() now uses Windows API GlobalMemoryStatusEx() instead of GlobalMemoryStatus()
    as it was failing on some computers.

Regarding xbrowse, we have already talked about it and we have decided to implement it, though it is not ready yet.

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 1096
Joined: Fri Oct 28, 2005 02:27 AM
Re: error with nExtMem()
Posted: Fri Sep 23, 2011 09:46 AM
Antonio,
I used the following to compile mem.c,
Code (fw): Select all Collapse
c:\bcc582\bin\bcc32 -c -Ic:\bcc582\include;c:\fwh\include;c:\xhb\include -o%1.obj %1.c > comp.log


but I got so many errors and warnings. What did I do wrong?
Code (fw): Select all Collapse
Borland C++ 5.82 for Win32 Copyright (c) 1993, 2005 Borland
mem.c:
Warning W8065 mem.c 44: Call to function 'hb_parnl' with no prototype in function HB_FUNC
Warning W8065 mem.c 45: Call to function 'hb_parnl' with no prototype in function HB_FUNC
Warning W8070 mem.c 46: Function should return a value in function HB_FUNC
Warning W8057 mem.c 46: Parameter 'GLOBALALLO' is never used in function HB_FUNC
Error E2238 mem.c 55: Multiple declaration for 'HB_FUNC'
Error E2344 mem.c 41: Earlier declaration of 'HB_FUNC'
Warning W8065 mem.c 56: Call to function 'hb_parnl' with no prototype in function HB_FUNC
Warning W8070 mem.c 57: Function should return a value in function HB_FUNC
Warning W8057 mem.c 57: Parameter 'GLOBALCOMP' is never used in function HB_FUNC
Error E2238 mem.c 62: Multiple declaration for 'HB_FUNC'
Error E2344 mem.c 53: Earlier declaration of 'HB_FUNC'
Warning W8065 mem.c 63: Call to function 'hb_parnl' with no prototype in function HB_FUNC
Warning W8065 mem.c 67: Call to function 'hb_parc' with no prototype in function HB_FUNC
Warning W8070 mem.c 70: Function should return a value in function HB_FUNC
Warning W8057 mem.c 70: Parameter 'GLOBALDATA' is never used in function HB_FUNC
Error E2238 mem.c 75: Multiple declaration for 'HB_FUNC'
Error E2344 mem.c 61: Earlier declaration of 'HB_FUNC'
Warning W8065 mem.c 76: Call to function 'hb_parnl' with no prototype in function HB_FUNC
Warning W8065 mem.c 80: Call to function 'hb_retl' with no prototype in function HB_FUNC
Warning W8065 mem.c 84: Call to function 'hb_retl' with no prototype in function HB_FUNC
Warning W8070 mem.c 85: Function should return a value in function HB_FUNC
Warning W8057 mem.c 85: Parameter 'GLOBALFREE' is never used in function HB_FUNC
Error E2238 mem.c 90: Multiple declaration for 'HB_FUNC'
Error E2344 mem.c 74: Earlier declaration of 'HB_FUNC'
Warning W8065 mem.c 91: Call to function 'hb_parnl' with no prototype in function HB_FUNC
Warning W8065 mem.c 94: Call to function 'hb_retnl' with no prototype in function HB_FUNC
Warning W8065 mem.c 96: Call to function 'hb_retnl' with no prototype in function HB_FUNC
Warning W8070 mem.c 97: Function should return a value in function HB_FUNC
Warning W8057 mem.c 97: Parameter 'GLOBALSIZE' is never used in function HB_FUNC
Error E2238 mem.c 106: Multiple declaration for 'HB_FUNC'
Error E2344 mem.c 89: Earlier declaration of 'HB_FUNC'
Warning W8070 mem.c 110: Function should return a value in function HB_FUNC
Warning W8057 mem.c 110: Parameter 'LOCALSHRIN' is never used in function HB_FUNC
Error E2238 mem.c 119: Multiple declaration for 'HB_FUNC'
Error E2344 mem.c 104: Earlier declaration of 'HB_FUNC'
Warning W8065 mem.c 120: Call to function 'hb_retnl' with no prototype in function HB_FUNC
Warning W8070 mem.c 121: Function should return a value in function HB_FUNC
Warning W8057 mem.c 121: Parameter 'GETFREESPA' is never used in function HB_FUNC
Error E2238 mem.c 126: Multiple declaration for 'HB_FUNC'
Error E2344 mem.c 117: Earlier declaration of 'HB_FUNC'
Warning W8065 mem.c 128: Call to function 'hb_parni' with no prototype in function HB_FUNC
Warning W8070 mem.c 137: Function should return a value in function HB_FUNC
Warning W8057 mem.c 137: Parameter 'MOREHEAP' is never used in function HB_FUNC
Warning W8057 mem.c 160: Parameter 'pMem' is never used in function _xrealloc
Warning W8057 mem.c 165: Parameter 'pMem' is never used in function _xfree
Error E2238 mem.c 173: Multiple declaration for 'HB_FUNC'
Error E2344 mem.c 125: Earlier declaration of 'HB_FUNC'
Warning W8065 mem.c 174: Call to function 'hb_parnl' with no prototype in function HB_FUNC
Warning W8070 mem.c 175: Function should return a value in function HB_FUNC
Warning W8057 mem.c 175: Parameter 'GLOBALLOCK' is never used in function HB_FUNC
Error E2238 mem.c 184: Multiple declaration for 'HB_FUNC'
Error E2344 mem.c 172: Earlier declaration of 'HB_FUNC'
Warning W8065 mem.c 185: Call to function 'hb_parnl' with no prototype in function HB_FUNC
Warning W8070 mem.c 186: Function should return a value in function HB_FUNC
Warning W8057 mem.c 186: Parameter 'GLOBALUNLO' is never used in function HB_FUNC
Error E2238 mem.c 195: Multiple declaration for 'HB_FUNC'
Error E2344 mem.c 182: Earlier declaration of 'HB_FUNC'
Warning W8065 mem.c 196: Call to function 'hb_parnl' with no prototype in function HB_FUNC
Warning W8070 mem.c 197: Function should return a value in function HB_FUNC
Warning W8057 mem.c 197: Parameter 'GLOBALREAL' is never used in function HB_FUNC
Error E2238 mem.c 204: Multiple declaration for 'HB_FUNC'
Error E2344 mem.c 193: Earlier declaration of 'HB_FUNC'
Warning W8065 mem.c 211: Call to function 'hb_retnll' with no prototype in function HB_FUNC
Warning W8070 mem.c 212: Function should return a value in function HB_FUNC
Warning W8057 mem.c 212: Parameter 'NEXTMEM' is never used in function HB_FUNC
*** 22 errors in Compile ***


TIA
FWH 11.08/FWH 19.12

BCC5.82/BCC7.3

xHarbour/Harbour
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: error with nExtMem()
Posted: Sun Sep 25, 2011 08:47 PM

Hua,

Please check that your mem.c starts with:

include <Windows.h>

include <hbapi.h>

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 1096
Joined: Fri Oct 28, 2005 02:27 AM
Re: error with nExtMem()
Posted: Mon Sep 26, 2011 01:45 AM

Thanks Antonio. Was missing hbapi.h

FWH 11.08/FWH 19.12

BCC5.82/BCC7.3

xHarbour/Harbour

Continue the discussion