Loading of Common Dialog fails on Outlook 2003 SP2

  • Thread starter Thread starter Ronnie
  • Start date Start date
R

Ronnie

Hello,

We have developed a custom form that dynamically loads common dialog.
The code works fine on Outlook 2003 but fails to load on some machines
with Office 2003 SP2. The line that fails is the following:

set opendd=CreateObject("MSComDlg.CommonDialog")

Any ideas?

Thanks,

Ronnie
 
Are those machines using some A-V or other software that might be blocking
scripting, which can block CreateObject? If that can't be turned off or your
application set to be trusted (McAfee lets you do that, Norton doesn't) then
you could use the Win32 API's to load the library and access its procedures.

Use LoadLibrary and GetProcAddress and then FreeLibrary when you're done
with the library.
 
Back
Top