Solved

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

Posted on 2004-04-07
8
224 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
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!

 

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

Enroll in June's Course of the Month

June's Course of the Month is now available! Every 10 seconds, a consumer gets hit with ransomware. Refresh your knowledge of ransomware best practices by enrolling in this month's complimentary course for Premium Members, Team Accounts, and Qualified Experts.

Question has a verified solution.

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

This article explains how to create forms/units independent of other forms/units object names in a delphi project. Have you ever created a form for user input in a Delphi project and then had the need to have that same form in a other Delphi proj…
Introduction Raise your hands if you were as upset with FireMonkey as I was when I discovered that there was no TListview.  I use TListView in almost all of my applications I've written, and I was not going to compromise by resorting to TStringGrid…
This is a high-level webinar that covers the history of enterprise open source database use. It addresses both the advantages companies see in using open source database technologies, as well as the fears and reservations they might have. In this…
Michael from AdRem Software explains how to view the most utilized and worst performing nodes in your network, by accessing the Top Charts view in NetCrunch network monitor (https://www.adremsoft.com/). Top Charts is a view in which you can set seve…

689 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