Page 1 of 1

FOLDERS with RESOURCE FILE (Pelle C)

Posted: Wed Jan 03, 2007 5:32 am
by Ollie
As soon as I add a custom control in my dialog - (Class name: TFOLDER)
I get the following runtime error:
Error description: Error FiveWin/3 Cannot create Dialog Box:
Resource: DB_CURR

Stack Calls
===========
Called from: => CREATEDLGERROR(0)
Called from: DIALOG.PRG => TDIALOG:ACTIVATE(0)
Called from: current.prg => DB_CURR(114)
Called from: subspro3.prg => (b)MAIN(90)
Called from: BTNBMP.PRG => TBTNBMP:CLICK(0)
Called from: BTNBMP.PRG => TBTNBMP:LBUTTONUP(0)
Called from: WINDOW.PRG => TWINDOW:HANDLEEVENT(0)
Called from: CONTROL.PRG => TBTNBMP:HANDLEEVENT(0)
Called from: WINDOW.PRG => _FWH(0)
Called from: => WINRUN(0)
Called from: WINDOW.PRG => TMDIFRAME:ACTIVATE(0)
Called from: subspro3.prg => MAIN(96)
Please tell me what is missing?

I see the bigfold sample has:
local hBorl := LoadLibrary( "BWCC32.dll" )
BWCCRegister(GetResources())


So I tried putting that in the code, but it won't link:
Unresolved External '_HB_FUN_BSCCREGISTER' ...

Posted: Wed Jan 03, 2007 6:50 am
by Antonio Linares
Ollie,

The control name to use is "SysTabControl32" instead of "TFolder"

Posted: Wed Jan 03, 2007 7:22 pm
by Ollie
Thanks. Its working great!