Solved

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

Posted on 2004-04-07
8
221 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
  • 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
Efficient way to get backups off site to Azure

This user guide provides instructions on how to deploy and configure both a StoneFly Scale Out NAS Enterprise Cloud Drive virtual machine and Veeam Cloud Connect in the Microsoft Azure Cloud.

 

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

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

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

Creating an auto free TStringList The TStringList is a basic and frequently used object in Delphi. On many occasions, you may want to create a temporary list, process some items in the list and be done with the list. In such cases, you have to…
Introduction I have seen many questions in this Delphi topic area where queries in threads are needed or suggested. I know bumped into a similar need. This article will address some of the concepts when dealing with a multithreaded delphi database…
In a recent question (https://www.experts-exchange.com/questions/28997919/Pagination-in-Adobe-Acrobat.html) here at Experts Exchange, a member asked how to add page numbers to a PDF file using Adobe Acrobat XI Pro. This short video Micro Tutorial sh…
Email security requires an ever evolving service that stays up to date with counter-evolving threats. The Email Laundry perform Research and Development to ensure their email security service evolves faster than cyber criminals. We apply our Threat…

773 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