Page 2 of 2

Re: error with nExtMem()

PostPosted: Thu Sep 22, 2011 12:12 pm
by ukservice
Thanks.

Hope is fixed in FW 11.09?.

What about xBrowse and Win 7 look?.

Re: error with nExtMem()

PostPosted: Thu Sep 22, 2011 1:28 pm
by Antonio Linares
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.

Re: error with nExtMem()

PostPosted: Fri Sep 23, 2011 9:46 am
by hua
Antonio,
I used the following to compile mem.c,
Code: Select all  Expand view

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: Select all  Expand view

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

Re: error with nExtMem()

PostPosted: Sun Sep 25, 2011 8:47 pm
by Antonio Linares
Hua,

Please check that your mem.c starts with:

#include <Windows.h>
#include <hbapi.h>

Re: error with nExtMem()

PostPosted: Mon Sep 26, 2011 1:45 am
by hua
Thanks Antonio. Was missing hbapi.h