Article View: borland.public.cppbuilder.nativeapi
Article #9235Re: VCL components in DLL
From: Remy Lebeau (TeamB)
Date: Mon, 19 Jul 2004 18:51
Date: Mon, 19 Jul 2004 18:51
22 lines
1733 bytes
1733 bytes
"Pere Mateu" <pmateu@siam.es> wrote in message news:40fbfe0c$1@newsgroups.borland.com... > I'm trying to embed some VCL components in a DLL. I want > to show these components in the main form of my app by -after > succesfully getting a pointer to the VCL component- changing > the Parent property from the form in the DLL to the form in the > main EXE. Use a package instead of a DLL. A Package is a special kind of DLL that has native VCL support built in. A basic DLL does not have that. > But this is not working. I get assignment errors like 'Can not > assign a TFont to a TFont'. The DLL has different RTTI (runtime time information) than the Application does, thus things like TPersistent::Assign() and dynamic_cast fail when testing pointers across the DLL boundary. Gambit
Technical Details
Message-ID:
<40fc17f7@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.glorb.com!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed.frii.net!newsfeed.frii.net!news.compaq.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mailReferences:
<40fbfe0c$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,a715283d5a51ae91 X-Google-Attributes: gid10cc67,public X-Google-Language: ENGLISH,ASCII-7-bit From: "Remy Lebeau \(TeamB\)" <gambit47.no.spam@no.spam.yahoo.com> Newsgroups: borland.public.cppbuilder.nativeapi References: <40fbfe0c$1@newsgroups.borland.com> Subject: Re: VCL components in DLL Date: Mon, 19 Jul 2004 11:51:24 -0700 Lines: 24 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1409 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1409 NNTP-Posting-Host: 68.69.17.41 Message-ID: <40fc17f7@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1090263031 68.69.17.41 (19 Jul 2004 11:50:31 -0700) Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.glorb.com!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed.frii.net!newsfeed.frii.net!news.compaq.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail