🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.deployment
Article #28

Re: TForm loaded from dll not showing on parent form (when Build withRuntime packages unchecked)

#28
From: Ondrej Gratz
Date: Sun, 15 May 2005 14:53
49 lines
3014 bytes
It seems like there's no way. From what I googled I found this type of 
an application should always be built with runtime packages to be 
working properly. No matter if I use BPL or DLL.

How could I find out what files (BPLs I assume) my project needs to be 
deployed with ?

Sincerely
Ondrej Gratz

Ondrej Gratz wrote:
> Hello, everybody !
> 
> /*******************************************/
> ide: Borland C++ Builder 6 Build 10.166,
>  all actual updates applied.
> 
> Please download attachment from borland.public.attachments, "Form loaded 
> from dll ATTACH" post. It's only 10 kB. I've tried to keep paths 
> relative, so you should have no problem compiling it under BCB6.
> /*******************************************/
> I'll try to keep it short. I've created very simple application to 
> demonstrate my problem.
>     After you compile both projects (one of them is an EXE, the other is 
> a DLL), run server.exe.
>     On the main menu, press Show DLL form. Form loaded from the DLL 
> appears on the main form workspace.
> 
> Now in both projects uncheck "Build with runtime packages" on the 
> Packages tab in the project Options dialog.
>     Again, compile projects and run the application.
> 
> /* The problem: now you can't see the DLL form. */
> The function that shows the form is located in 
> client.bpr/client_main.cpp, r.49.
> 
> I know the actual application's bad. But it's my first implementation of 
> an application with dynamically loadable modules. That's a great concept 
> for me, but the first solution is bad.
> 
> Unfortunatelly I've found this problem after a big part of the 
> application has been completed. I don't want to ship all of the runtime 
> libraries with the project, so I appreciate any ideas.
> 
> Thanks very, very much for replies.
> 
> Sincerely
> Ondrej Gratz
Technical Details
Message-ID: <4287624b@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news.glorb.com!feeder.xsnews.nl!news-out.newsgroups.com!propagator2-sterling.newsfeeds.com!news-in.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mail
References: <4284ec37@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: f8e54,6ea2f7e8f3bca168
X-Google-Attributes: gidf8e54,public
X-Google-Language: ENGLISH,ASCII-7-bit
Date: Sun, 15 May 2005 16:53:00 +0200
From: Ondrej Gratz <gratzo@atlas.cz>
User-Agent: Mozilla Thunderbird 0.8 (Windows/20040913)
X-Accept-Language: en-us, en
MIME-Version: 1.0
Newsgroups: borland.public.cppbuilder.deployment
Subject: Re: TForm loaded from dll not showing on parent form (when Build
 withRuntime packages unchecked)
References: <4284ec37@newsgroups.borland.com>
In-Reply-To: <4284ec37@newsgroups.borland.com>
Content-Type: text/plain; charset=ISO-8859-2; format=flowed
Content-Transfer-Encoding: 7bit
X-Antivirus: avast! (VPS 0519-2, 12.05.2005), Outbound message
X-Antivirus-Status: Clean
NNTP-Posting-Host: 85.160.64.86
Message-ID: <4287624b@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1116168779 85.160.64.86 (15 May 2005 07:52:59 -0700)
Lines: 49
Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news.glorb.com!feeder.xsnews.nl!news-out.newsgroups.com!propagator2-sterling.newsfeeds.com!news-in.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mail