Page 1 of 1

ERROR FWH 10.7 + xhb.com nov. 2009 testtre2.prg

Posted: Mon Aug 23, 2010 4:22 pm
by Gale FORd
I tried to compile the sample program testtre2.prg and get the error
Unresolved external symbol '_TreeView_SetItemState referenced from Fivehcm.lib(TREEVIEW.obj)'

I am using FWH 10.7 + xhb.com builder nov. 2009

Re: ERROR FWH 10.7 + xhb.com nov. 2009 testtre2.prg

Posted: Mon Aug 23, 2010 7:35 pm
by Horizon
Hi Gale FORD,

As a workaround add this code to prg file.

Code: Select all

#pragma BEGINDUMP

BOOL TreeView_SetItemState( void * p, BOOL bState ) {
  return TRUE;
}

#pragma ENDDUMP
 

Re: ERROR FWH 10.7 + xhb.com nov. 2009 testtre2.prg

Posted: Fri Jul 08, 2011 2:00 pm
by Patrizio
I have the same error when compile with FWH 11.06 + xHarbour.org 1.21.9376 + MSVC2008.

Re: ERROR FWH 10.7 + xhb.com nov. 2009 testtre2.prg

Posted: Mon Jul 11, 2011 9:31 am
by Antonio Linares

Re: ERROR FWH 10.7 + xhb.com nov. 2009 testtre2.prg

Posted: Mon Jul 11, 2011 10:03 am
by Patrizio
Antonio, with the lib uptaded:

Fivehcm.lib(TREEVIEW.obj) : error LNK2019: riferimento al simbolo esterno _TreeView_SetCheckState non risolto nella funzione _HB_FUN_TVSETCHECK
Fivehcm.lib(TREEVIEW.obj) : error LNK2019: riferimento al simbolo esterno _TreeView_GetCheckState non risolto nella funzione _HB_FUN_TVGETCHECK

("riferimento al simbolo esterno" is the italian translate of "Unresolved external symbol")

If I include in my app the treeview.c in FWH\Source\WinAPi i get no errors, seems we have different CommCtrl.h.

Re: ERROR FWH 10.7 + xhb.com nov. 2009 testtre2.prg

Posted: Mon Jul 11, 2011 11:00 am
by Antonio Linares
Patrizio,

This one should be ok :-)
http://fivewin.googlecode.com/files/Fivehcm.lib

Many thanks for your feedback! :-)

Re: ERROR FWH 10.7 + xhb.com nov. 2009 testtre2.prg

Posted: Mon Jul 11, 2011 12:55 pm
by Patrizio
Antonio,
now it's ok, thank you.