🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.nativeapi
Article #15741

Re: Exporting a form from a DLL and docking it to main application

#15741
From: Pang Fu
Date: Wed, 18 Jun 2003 07:16
25 lines
1905 bytes
Dear Mark,

Thank you for the explanation. I'll try to implement your steps and how to
use packages instead of DLLs?

Pang Fu

"Mark Guerrieri" <markg11@comcast.net> wrote in message
news:3eeffab0@newsgroups.borland.com...
> The problem is that each loaded dll gets its own copy of the VCL,
complete
> with its own Application object.  The prefered solution is to store forms
in
> dynamicly loaded packages.  The workaround is to:
>
> 1- Store the dll Application variable of dll load
> 2- Have the main app pass its Application variable to the dll and assign
> this to dll Application
> 3- Create forms to export with Application as parent
> 4- Delete all forms and restore original dll Application on dll unload.
>
> Again, using packages is much easier.
>
> Mark
>
Technical Details
Message-ID: <3ef0118a@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-04!sn-xit-03!sn-xit-06!sn-xit-09!supernews.com!news.maxwell.syr.edu!newsfeed.wirehub.nl!news.kweb.on.ca!KWeb!newsgroups.borland.com!not-for-mail
References: <3eefc75e@newsgroups.borland.com> <3eeffab0@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10cc67,1ca8973c81239c4b
X-Google-Attributes: gid10cc67,public
X-Google-Thread: 102541,1ca8973c81239c4b
X-Google-Attributes: gid102541,public
X-Google-ArrivalTime: 2003-06-18 00:26:44 PST
From: "Pang Fu" <pangfu@hotmail.com>
Newsgroups: borland.public.cppbuilder.nativeapi,borland.public.cppbuilder.students
References: <3eefc75e@newsgroups.borland.com> <3eeffab0@newsgroups.borland.com>
Subject: Re: Exporting a form from a DLL and docking it to main application
Date: Wed, 18 Jun 2003 17:16:37 +1000
Lines: 27
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
NNTP-Posting-Host: 203.134.35.23
Message-ID: <3ef0118a@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1055920522 203.134.35.23 (18 Jun 2003 00:15:22 -0700)
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-04!sn-xit-03!sn-xit-06!sn-xit-09!supernews.com!news.maxwell.syr.edu!newsfeed.wirehub.nl!news.kweb.on.ca!KWeb!newsgroups.borland.com!not-for-mail