🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

TForm loaded from dll not showing on parent form (when Build with Runtime packages unchecked)

#27
From: Ondrej Gratz
Date: Fri, 13 May 2005 18:04
37 lines
2431 bytes
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: <4284ec37@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news.glorb.com!solnet.ch!solnet.ch!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Thread: f8e54,6ea2f7e8f3bca168,start
X-Google-Attributes: gidf8e54,public
X-Google-Language: ENGLISH,ASCII-7-bit
Date: Fri, 13 May 2005 20:04:38 +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: TForm loaded from dll not showing on parent form (when Build with
 Runtime packages unchecked)
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.67.6
Message-ID: <4284ec37@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1116007479 85.160.67.6 (13 May 2005 11:04:39 -0700)
Lines: 37
Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news.glorb.com!solnet.ch!solnet.ch!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail