Using Common Dialog control within an ActiveX DLL 
Author Message
 Using Common Dialog control within an ActiveX DLL

I've been trying to get a DLL to contain an MS Common Dialog Control for
days now, to no avail. The problem is that DLL's don't seem to be able to
create OCX controls in and of themselves. I can give the DLL a
"Reference..." to the component, but I can't create a "New" one inside.

I can, however:
    1) Place a dialog control on a _form_
    2) Declare a handle within the DLL (without using "New"), like so:

          Private dlgFind As MSComDlg.CommonDialog

    3) In the form's setup routine, assign the DLL's handle to the
       control that actually exists on the form (via a property)
    4) Once that's done, I can use "dlgFind" within the DLL

These steps work, but it's a lot of extra management I'd rather do
without. Is there some way to just create the dialog control within the
DLL itself?

Thanks in advance for any help,
--Laurent Stanevich



Fri, 17 Mar 2000 03:00:00 GMT  
 
 [ 1 post ] 

 Relevant Pages 

1. Using common dialog within a tab control

2. Distributing applications using common dialog activex control

3. Common Dialog ActiveX Control

4. Using MS Windows 3.1 common dialogs DLL from MS Access

5. Using MS Windows 3.1 common dialogs DLL from MS Access

6. Using MS Windows 3.1 common dialogs DLL from MS Access

7. Outlook: ActiveX common dialog control not properly licensed

8. Using MS Windows 3.1 common dialogs DLL from MS Access

9. MS Common Dialog ActiveX control (dependencies)

10. Outlook: ActiveX common dialog control not properly licensed

11. Common Dialog ActiveX Control not loading properly on Win2k Server

12. Using Script from within ActiveX Control (scripting control???)

 

 
Powered by phpBB® Forum Software