Solved

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

Posted on 2004-04-07
8
218 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
What Should I Do With This Threat Intelligence?

Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

 

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

What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

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…
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…
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, Just open a new email message.  In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…

757 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

Need Help in Real-Time?

Connect with top rated Experts

22 Experts available now in Live!

Get 1:1 Help Now