Solved

Problems with showing panel from form in DLL on form in EXE

Posted on 2004-04-07
8
223 Views
Last Modified: 2010-04-05
I have I have got problem how to show panel from dll form on form from EXE. I have
tried ManualDoc(form from EXE,nil,alNone) of panel from DLL, i have set
Application and Screen variables in function from DLL with paramaters from EXE
before creating form from DLL. Everythigs looks OK, but panel from DLL is
not visible on EXE form.Both EXE and DLL are compiled without runtime packages.

I am using Delphi 7,Win 2000.

    Thanks a lot
                      Honza
0
Comment
Question by:habaso
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 4
  • 3
8 Comments
 
LVL 9

Expert Comment

by:mocarts
ID: 10774533
hi, Honza :)
Did you tried to set TPanel.Parent property to Form also?
And how about ShareMem (or FastShareMem) usage? did you compiled it in?
Anyway I'm not sure this will work as TObject (or other base class) from your exe <> TObject from you dll as there are two Classes.pas units (and TObject class addreses)

wbr, mo.
0
 

Author Comment

by:habaso
ID: 10775186
Thanks, i have tried setting of TPanel.Parent property. I have used sharemem in both project.

Regards
Honza
0
 
LVL 9

Expert Comment

by:mocarts
ID: 10775280
I, see..
Do you have strict limitation to not to use runtime packages?
0
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 

Author Comment

by:habaso
ID: 10775601
I have huge changes in db parts of vcl. (paging in db gridds....)
Thanks
     Honza
0
 
LVL 9

Accepted Solution

by:
mocarts earned 125 total points
ID: 10778727
That is not a problem - just make your own runtime package.
Create new package - mark it as runtime package, add your customized, common units and compile.
Next in both projects (exe & dll) use only this package in runtime package list. Be sure that your runtime packages *.dcp file is in projects search path. And at runtime there is *.bpl of your package available for both projects.
If you need more detailed (step by step) instruction - just ask :)
wbr, mo.
0
 
LVL 9

Expert Comment

by:mocarts
ID: 10778739
One important note - mark the package as Runtime only and if after compile there is dialog about to recompile with delphi's runtime packages, just cancel it.
0
 

Author Comment

by:habaso
ID: 13187347
I have solved problem using runtime packages. Problem is in some global variables in vcl, different in EXE and DLL.
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Objective: - This article will help user in how to convert their numeric value become words. How to use 1. You can copy this code in your Unit as function 2. than you can perform your function by type this code The Code   (CODE) The Im…
Have you ever had your Delphi form/application just hanging while waiting for data to load? This is the article to read if you want to learn some things about adding threads for data loading in the background. First, I'll setup a general applica…
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial

738 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question