We help IT Professionals succeed at work.

Check out our new AWS podcast with Certified Expert, Phil Phillips! Listen to "How to Execute a Seamless AWS Migration" on EE or on your favorite podcast platform. Listen Now

x

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

habaso
habaso asked
on
Medium Priority
249 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
Comment
Watch Question

Commented:
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.

Author

Commented:
Thanks, i have tried setting of TPanel.Parent property. I have used sharemem in both project.

Regards
Honza

Commented:
I, see..
Do you have strict limitation to not to use runtime packages?

Author

Commented:
I have huge changes in db parts of vcl. (paging in db gridds....)
Thanks
     Honza
Commented:
Unlock this solution and get a sample of our free trial.
(No credit card required)
UNLOCK SOLUTION

Commented:
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.

Author

Commented:
I have solved problem using runtime packages. Problem is in some global variables in vcl, different in EXE and DLL.
Unlock the solution to this question.
Thanks for using Experts Exchange.

Please provide your email to receive a sample view!

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

OR

Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.