Solved

calling a dll form  , from an exec project

Posted on 2002-07-27
5
131 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 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

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

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…
Creating an auto free TStringList The TStringList is a basic and frequently used object in Delphi. On many occasions, you may want to create a temporary list, process some items in the list and be done with the list. In such cases, you have to…
In this video we outline the Physical Segments view of NetCrunch network monitor. By following this brief how-to video, you will be able to learn how NetCrunch visualizes your network, how granular is the information collected, as well as where to f…
In this video you will find out how to export Office 365 mailboxes using the built in eDiscovery tool. Bear in mind that although this method might be useful in some cases, using PST files as Office 365 backup is troublesome in a long run (more on t…
Suggested Courses
Course of the Month4 days, 17 hours left to enroll

636 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