FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for CA-Clipper Trees from Resources
Posts: 159
Joined: Wed Mar 28, 2007 01:19 PM

Trees from Resources

Posted: Thu Mar 29, 2007 02:55 PM

Hi, I am a long time reader, it is my first post.
I am testing the program TESTTREE.PRG (from tree_r5.zip) showing trees in MDI-CHILD, dialogs and from resources and it works OK.
When I transferred the tree-from-resources routine into an other program and the resources into an other DLL it stopped working.
If I put "set resources to ´testtree.dll´" before the routine, it works OK
Any hints ?
TIA, Euclides

FW2.0 + BRW

Posts: 9022
Joined: Thu Oct 06, 2005 08:17 PM

Re: Trees from Resources

Posted: Thu Mar 29, 2007 04:41 PM

"set resources to ´testtree.dll´" is required.

EMG

Posts: 159
Joined: Wed Mar 28, 2007 01:19 PM

Trees from Resources

Posted: Thu Mar 29, 2007 05:19 PM

Enrico, thanks for the answer.
I did "set resources to..." on the beginning of the main program.
I transferred the TESTTREE.DLL resources to the main program´s DLL via the option: Add to Project... on the BWS.
When running , the tree routine, opens the dialog, shows the bitmaps on the buttonbar, but does not show the tree.
So, to do a test, I inserted a new "set resources to testtree.dll" before the tree routine an a "set resources to main.dll" at the end of the tree routine and the tree routine worked well.
I think there is some difference between the two dlls, but cannot figure what.
Regards, Euclides

Posts: 9022
Joined: Thu Oct 06, 2005 08:17 PM

Trees from Resources

Posted: Thu Mar 29, 2007 05:46 PM

It seems that BRW doesn't work correctly with DLLs.

EMG

Posts: 44162
Joined: Thu Oct 06, 2005 05:47 PM

Trees from Resources

Posted: Fri Mar 30, 2007 08:13 AM

Euclides,

Save the DLLs resources as RC files, join them in just one RC and build one single DLL from that RC file

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 159
Joined: Wed Mar 28, 2007 01:19 PM

Trees from Resources

Posted: Fri Mar 30, 2007 09:09 PM

Thanks Antonio!
Now is working fine.
Regards, Euclides

Continue the discussion