 |
BorlandTalk.com Borland discussion newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
D Whaley Guest
|
Posted: Mon Oct 27, 2003 5:20 pm Post subject: Loading frame from a dll |
|
|
I am trying to load a custom frame from a dll. But, when I try to assign the
parent, I get the error "Cannot assign a tfont to a tfont"
What is this about?
|
|
| Back to top |
|
 |
Peter Below (TeamB) Guest
|
Posted: Tue Oct 28, 2003 8:13 pm Post subject: Re: Loading frame from a dll |
|
|
In article <3f9d53dc (AT) newsgroups (DOT) borland.com>, D Whaley wrote:
| Quote: |
I am trying to load a custom frame from a dll. But, when I try to assign the
parent, I get the error "Cannot assign a tfont to a tfont"
What is this about?
|
This only works if you build DLL and host EXE with run-time packages. Without
that you are dealing with two different copies of the VCL code and all its
classes, one in the DLL, one in the host EXE. So both have a TFont class, but
they are different to something like the Is operator, since they have
different addresses for the class records.
--
Peter Below (TeamB)
Use the newsgroup archives :
http://www.mers.com/searchsite.html
http://www.tamaracka.com/search.htm
http://groups.google.com
http://www.prolix.be
|
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|