Trees from Resources

Post Reply
User avatar
Euclides
Posts: 144
Joined: Wed Mar 28, 2007 1:19 pm

Trees from Resources

Post by Euclides »

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
User avatar
Euclides
Posts: 144
Joined: Wed Mar 28, 2007 1:19 pm

Post by Euclides »

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

Post by Antonio Linares »

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
User avatar
Euclides
Posts: 144
Joined: Wed Mar 28, 2007 1:19 pm

Post by Euclides »

Thanks Antonio!
Now is working fine.
Regards, Euclides
Post Reply