FOLDERS with RESOURCE FILE (Pelle C)

Post Reply
Ollie
Posts: 233
Joined: Sat Dec 30, 2006 6:10 am

FOLDERS with RESOURCE FILE (Pelle C)

Post 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' ...
Many thanks
Ollie.

Using:
xHarbour Compiler build 1.2.1 (SimpLex) (Rev. 6406)
Borland C++ 5.5.1
FWH 9.04 (2009 Apr)
User avatar
Antonio Linares
Site Admin
Posts: 37481
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Contact:

Post by Antonio Linares »

Ollie,

The control name to use is "SysTabControl32" instead of "TFolder"
regards, saludos

Antonio Linares
www.fivetechsoft.com
Ollie
Posts: 233
Joined: Sat Dec 30, 2006 6:10 am

Post by Ollie »

Thanks. Its working great!
Many thanks
Ollie.

Using:
xHarbour Compiler build 1.2.1 (SimpLex) (Rev. 6406)
Borland C++ 5.5.1
FWH 9.04 (2009 Apr)
Post Reply