mfc >> Forms in DLL

by Ben Taylor » Wed, 26 Nov 2003 03:50:15 GMT

Hi
Has anybody got any simple examples of how to create a DLL that can be
called by Visual Basic that can also display a form? Can be MFC if necessary

Thanks
Ben




mfc >> Forms in DLL

by Ajay Kalra » Wed, 26 Nov 2003 06:24:14 GMT


The fact that the DLL displays a window(form) is really not that important. What you want
is the framework to create a DLL that can be called from VB. You can either use COM server
which may or may not use MFC or make a regular DLL and export some methods that can be
called using GetProcAddress in VB.

I have no idea about what you are trying to do. If you are VB based, you may not even want
to make the dll in VC. It all depends upon what your goal is and how your project is set
up.

--
Ajay Kalra [MVP - VC++]
XXXX@XXXXX.COM




| Hi
| Has anybody got any simple examples of how to create a DLL that can be
| called by Visual Basic that can also display a form? Can be MFC if necessary
|
| Thanks
| Ben
|
|




mfc >> Forms in DLL

by Ben Taylor » Wed, 26 Nov 2003 08:25:58 GMT

It's Ok thank you I've 'figured it out'.
My problem was that I want to call a function from a VB program that will be
able to be declared in an API function (i.e. won't have to have a COM module
installed) and that will be able to show up a form - the answer was to
create an MFC DLL not just a simple DLL



important. What you want
either use COM server
methods that can be
may not even want
project is set


necessary




Similar Threads

1. Building a DLL with a form inside and using it (Form within dll) - Borland C++ Builder VCL Components

2. Accessing managed forms form unmanaged dll

Is thera a way to access a managed form from unmanaged dll??

Like, if I want to modify the Text property of a label...

[]s...

3. Windows Form to dll - CSharp/C#

4. find forms in dll

Is there any way to look into a compiled dll and find the forms associated 
and then locate properties of the form? 


5. Form in DLL - CSharp/C#

6. MDI forms and Dlls (visual C++ 2005)

I will loose it very soon!

I have one mdi parent and two mdi childs,

the parent and the childs are in different dlls ( = three dlls)
I can load the childs and view them from the parent and even manage
them from there, BUT

I can't get the child to communicate with eachother! What I need is
e.g. childA to react on an event and send informaton to childB.

Can anyone, please, post a link to a tutorial on this matter, I would
be most grateful!

7. Forms in DLL

8. accessing extern varible form a dll

I want to excess a variable in my code which is declared extern in the
.dll, without making any changes to the *.dll.