error with nExtMem()

Re: error with nExtMem()

Postby ukservice » 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
User avatar
ukservice
 
Posts: 417
Joined: Tue Feb 23, 2010 3:09 pm
Location: John

Re: error with nExtMem()

Postby Antonio Linares » Thu Sep 22, 2011 1: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
User avatar
Antonio Linares
Site Admin
 
Posts: 42103
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Re: error with nExtMem()

Postby hua » Fri Sep 23, 2011 9:46 am

Antonio,
I used the following to compile mem.c,
Code: Select all  Expand view  RUN

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  RUN

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
hua
 
Posts: 1072
Joined: Fri Oct 28, 2005 2:27 am

Re: error with nExtMem()

Postby Antonio Linares » Sun Sep 25, 2011 8:47 pm

Hua,

Please check that your mem.c starts with:

#include <Windows.h>
#include <hbapi.h>
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 42103
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Re: error with nExtMem()

Postby hua » Mon Sep 26, 2011 1:45 am

Thanks Antonio. Was missing hbapi.h
FWH 11.08/FWH 19.12
BCC5.82/BCC7.3
xHarbour/Harbour
hua
 
Posts: 1072
Joined: Fri Oct 28, 2005 2:27 am

Previous

Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 80 guests