Solved

calling a dll form  , from an exec project

Posted on 2002-07-27
5
130 Views
Last Modified: 2010-04-04
how do i call a DLL with a form and components from a normal exec application and display it as a child window for the main application (exec) that calls it .
0
Comment
Question by:logicthought
[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
  • 2
  • 2
5 Comments
 
LVL 7

Expert Comment

by:Cynna
ID: 7182931
0
 
LVL 1

Author Comment

by:logicthought
ID: 7184387
Thanks allot , childwnd.zip answerd most of my questions
just on more ... do u know of a way to see the properties/methods of the dll in design time so i can write transfer variable information between forms and the child
0
 
LVL 12

Expert Comment

by:Lee_Nover
ID: 7185038
nopes
you can export wrapper functions that get/set the properties
OR ! make a package which includes the form
make an interfaced object and import the interface type
that way you can directly access the properties
I don't have the link to examples here but I'll look them up when I get home
0
 
LVL 7

Accepted Solution

by:
Cynna earned 100 total points
ID: 7185180
logicthought,

Sorry, I didn't quite understand what you want. But I'll try some guessing,
so please correct me if I didn't get you right...

> do u know of a way to see the properties/methods of the dll in design time ...

I'm not sure what you mean. DLL doesn't have properties/methods, only exported
functions/procedures. Form included in DLL howewer, does have properties, so you
probably meant that.
Anyhow, you can't have access to any of these during design-time, only in runtime.


> ... so i can write transfer variable information between forms and the child

If you want to access properties of the DLL form from your exe, you can do this
in two ways (but only in runtime):

a) export procedures/functions from DLL that set/get certain DLL-form property
                                   
                                       or

b) export pointer to Form1 object from DLL, and than access it from your exe
   as regular form. This will require the use of ShareMem unit, which implies
   shipping BORLNDMM.DLL with your app.


If you need full access to DLL form, b) solution is much
more elegant.
0
 
LVL 1

Author Comment

by:logicthought
ID: 7186751
yeah ... Pointers sound like A good way to go ....
Thanks allot .
0

Featured Post

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!

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
firemonkey Android Listview Sort items 7 103
Delphi android app hide keyboard 3 82
TlistView is Really heavy on Android 3 43
Connect to SQL 2008 r2 server over the Internet 4 80
Objective: - This article will help user in how to convert their numeric value become words. How to use 1. You can copy this code in your Unit as function 2. than you can perform your function by type this code The Code   (CODE) The Im…
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 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…

734 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