Solved

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

Posted on 2004-04-07
8
222 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
Industry Leaders: 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

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!

Question has a verified solution.

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

In this tutorial I will show you how to use the Windows Speech API in Delphi. I will only cover basic functions such as text to speech and controlling the speed of the speech. SAPI Installation First you need to install the SAPI type library, th…
Hello everybody This Article will show you how to validate number with TEdit control, What's the TEdit control? TEdit is a standard Windows edit control on a form, it allows to user to write, read and copy/paste single line of text. Usua…
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…
In an interesting question (https://www.experts-exchange.com/questions/29008360/) here at Experts Exchange, a member asked how to split a single image into multiple images. The primary usage for this is to place many photographs on a flatbed scanner…

679 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