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

Post Reply
Gale FORd
Posts: 663
Joined: Mon Dec 05, 2005 11:22 pm
Location: Houston
Contact:

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

Post 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
Horizon
Posts: 997
Joined: Fri May 23, 2008 1:33 pm

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

Post 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
 
Regards,

Hakan ONEMLI

Harbour & VS 2019 & FWH 20.12
Patrizio
Posts: 90
Joined: Wed Nov 07, 2007 8:56 am
Location: Italy
Contact:

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

Post by Patrizio »

I have the same error when compile with FWH 11.06 + xHarbour.org 1.21.9376 + MSVC2008.
User avatar
Antonio Linares
Site Admin
Posts: 37481
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Contact:

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

Post by Antonio Linares »

regards, saludos

Antonio Linares
www.fivetechsoft.com
Patrizio
Posts: 90
Joined: Wed Nov 07, 2007 8:56 am
Location: Italy
Contact:

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

Post 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.
User avatar
Antonio Linares
Site Admin
Posts: 37481
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Contact:

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

Post by Antonio Linares »

Patrizio,

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

Many thanks for your feedback! :-)
regards, saludos

Antonio Linares
www.fivetechsoft.com
Patrizio
Posts: 90
Joined: Wed Nov 07, 2007 8:56 am
Location: Italy
Contact:

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

Post by Patrizio »

Antonio,
now it's ok, thank you.
Post Reply