Trees from Resources

Trees from Resources

Postby Euclides » Thu Mar 29, 2007 2: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
User avatar
Euclides
 
Posts: 156
Joined: Wed Mar 28, 2007 1:19 pm

Re: Trees from Resources

Postby Enrico Maria Giordano » Thu Mar 29, 2007 4:41 pm

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

EMG
User avatar
Enrico Maria Giordano
 
Posts: 8719
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia

Postby Euclides » Thu Mar 29, 2007 5: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
User avatar
Euclides
 
Posts: 156
Joined: Wed Mar 28, 2007 1:19 pm

Postby Enrico Maria Giordano » Thu Mar 29, 2007 5:46 pm

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

EMG
User avatar
Enrico Maria Giordano
 
Posts: 8719
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia

Postby Antonio Linares » Fri Mar 30, 2007 8: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
User avatar
Antonio Linares
Site Admin
 
Posts: 42127
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Postby Euclides » Fri Mar 30, 2007 9:09 pm

Thanks Antonio!
Now is working fine.
Regards, Euclides
User avatar
Euclides
 
Posts: 156
Joined: Wed Mar 28, 2007 1:19 pm


Return to FiveWin for CA-Clipper

Who is online

Users browsing this forum: No registered users and 7 guests