Solved

calling a dll form  , from an exec project

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

What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

Join & Write a Comment

Introduction The parallel port is a very commonly known port, it was widely used to connect a printer to the PC, if you look at the back of your computer, for those who don't have newer computers, there will be a port with 25 pins and a small print…
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…
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…
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…

705 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

19 Experts available now in Live!

Get 1:1 Help Now