Erro _HB_FUN_NEXTMEM, Fw1109 + Vc 2008

Post Reply
User avatar
Ale SB
Posts: 248
Joined: Wed Jan 11, 2006 11:30 am
Location: Campo Grande-MS / Brasil

Erro _HB_FUN_NEXTMEM, Fw1109 + Vc 2008

Post by Ale SB »

Como resolver este erro ?

FiveHCm.lib(MEM.obj) : error LNK2019: símbolo externo _GlobalMemoryStatusEx sin resolver al que se hace referencia en la función _HB_FUN_NEXTMEM

Ferramentas: Fwh 11.09 + Msvc 2008 + Hb 3.1 rev. 17102

My Libs Vc 2008 ==>
- libcmt.lib
- Kernel32.Lib
- User32.Lib
- Gdi32.Lib
- AdvAPI32.Lib
- ws2_32.lib
- WinSpool.Lib
- ComCtl32.Lib
- ComDlg32.Lib
- shell32.Lib
- Uuid.Lib
- Ole32.Lib
- OleAut32.Lib
- OleDlg.Lib
- Mpr.Lib
- odbc32.Lib
- odbccp32.Lib
- winmm.lib
- mapi32.lib
- imm32.lib
- IPHlpApi.Lib
- Version.Lib
- WSock32.Lib
- MSImg32.Lib
- wininet.Lib
- psapi.lib

Saluds, Ale
aleseribeli@hotmail.com

FwH, Hb Svn, ADS 8.1, ADS 10, Pelles C, FwPPC, MsVc 2008, MsVc 2010
"Conhecimento, você não subtrai quando divide; mas soma e multiplica."
**---Mário Persona---**
User avatar
Antonio Linares
Site Admin
Posts: 37481
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Contact:

Re: Erro _HB_FUN_NEXTMEM, Fw1109 + Vc 2008

Post by Antonio Linares »

regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Ale SB
Posts: 248
Joined: Wed Jan 11, 2006 11:30 am
Location: Campo Grande-MS / Brasil

Re: Erro _HB_FUN_NEXTMEM, Fw1109 + Vc 2008

Post by Ale SB »

Antonio;

He generado el mem32.lib, está compilando.

Pero ahora, el sistema genera GPF.

Saluds, Ale
aleseribeli@hotmail.com

FwH, Hb Svn, ADS 8.1, ADS 10, Pelles C, FwPPC, MsVc 2008, MsVc 2010
"Conhecimento, você não subtrai quando divide; mas soma e multiplica."
**---Mário Persona---**
User avatar
Antonio Linares
Site Admin
Posts: 37481
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Contact:

Re: Erro _HB_FUN_NEXTMEM, Fw1109 + Vc 2008

Post by Antonio Linares »

Ale,

Implementa esta función en tu PRG principal:

function nExtMem()

return 0
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Ale SB
Posts: 248
Joined: Wed Jan 11, 2006 11:30 am
Location: Campo Grande-MS / Brasil

Re: Erro _HB_FUN_NEXTMEM, Fw1109 + Vc 2008

Post by Ale SB »

Antonio;

Continua el GPF.

sera que pode ser el Msvc 2008 ?
ou a ordem das Libs ?

"D:\mem32.lib"
libcmt.lib
Kernel32.Lib
User32.Lib
Gdi32.Lib
AdvAPI32.Lib
ws2_32.lib
WinSpool.Lib
ComCtl32.Lib
ComDlg32.Lib
shell32.Lib
Uuid.Lib
Ole32.Lib
OleAut32.Lib
OleDlg.Lib
Mpr.Lib
odbc32.Lib
odbccp32.Lib
winmm.lib
mapi32.lib
imm32.lib
IPHlpApi.Lib
Version.Lib
WSock32.Lib
MSImg32.Lib
wininet.Lib
psapi.lib

Saluds, Ale
aleseribeli@hotmail.com

FwH, Hb Svn, ADS 8.1, ADS 10, Pelles C, FwPPC, MsVc 2008, MsVc 2010
"Conhecimento, você não subtrai quando divide; mas soma e multiplica."
**---Mário Persona---**
User avatar
Antonio Linares
Site Admin
Posts: 37481
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Contact:

Re: Erro _HB_FUN_NEXTMEM, Fw1109 + Vc 2008

Post by Antonio Linares »

Ale,

No enlaces mem32.lib
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Ale SB
Posts: 248
Joined: Wed Jan 11, 2006 11:30 am
Location: Campo Grande-MS / Brasil

Re: Erro _HB_FUN_NEXTMEM, Fw1109 + Vc 2008

Post by Ale SB »

Antonio;

no se compila sin mem32.lib.

FiveHCm.lib(MEM.obj) : error LNK2019: símbolo externo _GlobalMemoryStatusEx sin resolver al que se hace referencia en la función _HB_FUN_NEXTMEM

test.prg

Code: Select all

#include "fivewin.ch"
 
FUNCTION MAIN()
 
 msginfo("Test mem32")
 
return
 
function nExtMem()
return 0
 
Saluds, Ale
aleseribeli@hotmail.com

FwH, Hb Svn, ADS 8.1, ADS 10, Pelles C, FwPPC, MsVc 2008, MsVc 2010
"Conhecimento, você não subtrai quando divide; mas soma e multiplica."
**---Mário Persona---**
User avatar
Ale SB
Posts: 248
Joined: Wed Jan 11, 2006 11:30 am
Location: Campo Grande-MS / Brasil

Re: Erro _HB_FUN_NEXTMEM, Fw1109 + Vc 2008

Post by Ale SB »

Antonio;

Con MSVC 2010, todo es normal.

El problema es con el 2008 msvc.

Voy a seguir haciendo pruebas.

Saluds, Ale
aleseribeli@hotmail.com

FwH, Hb Svn, ADS 8.1, ADS 10, Pelles C, FwPPC, MsVc 2008, MsVc 2010
"Conhecimento, você não subtrai quando divide; mas soma e multiplica."
**---Mário Persona---**
User avatar
Ale SB
Posts: 248
Joined: Wed Jan 11, 2006 11:30 am
Location: Campo Grande-MS / Brasil

Re: Erro _HB_FUN_NEXTMEM, Fw1109 + Vc 2008

Post by Ale SB »

Antonio;

Una cosa interesante, las librerías y Fivehc32.lib Fiveh32.lib por lo general trabajan con FW 11,09 + Hb30 + MSVC 2008.

¿Puedo tener algún problema de trabajo de esta manera?
Estas Libs no sao apenas para el MsVc 2010 ?

Una curiosidad, porque al compilar con las librerías y Fivehc32.lib Fiveh32.lib, esta generación arquivos xxx.Lib y xxx.Exp de meu xxx.exe ?

Saluds, Ale
aleseribeli@hotmail.com

FwH, Hb Svn, ADS 8.1, ADS 10, Pelles C, FwPPC, MsVc 2008, MsVc 2010
"Conhecimento, você não subtrai quando divide; mas soma e multiplica."
**---Mário Persona---**
User avatar
Antonio Linares
Site Admin
Posts: 37481
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Contact:

Re: Erro _HB_FUN_NEXTMEM, Fw1109 + Vc 2008

Post by Antonio Linares »

Ale,

Las versiones actuales de FWH soportan msvc 2010. En principio no sería aconsejable que las uses con msvc 2008 pues pueden aparecerte problemas de símbolos externos no resueltos.

http://stackoverflow.com/questions/8195 ... ing-an-exe
regards, saludos

Antonio Linares
www.fivetechsoft.com
Post Reply