Loading of Common Dialog fails on Outlook 2003 SP2

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
 
K

Ken Slovak - [MVP - Outlook]

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top