Replacing the existing Interop.SHDocVw dll with referance to Microsoft Internet Controls (COM Object)

Add-in Express™ Support Service
That's what is more important than anything else

Replacing the existing Interop.SHDocVw dll with referance to Microsoft Internet Controls (COM Object)
 
Omri Suissa


Guest


Hi,
When creating a new addon project there is a reference to Interop.SHDocVw dll but this DLL not including IShellUIHelper2 and IShellUIHelper3 interfaces. can i replace it with a referance to Microsoft Internet Controls (COM Object)?
My addon can still run on IE 6 for example?

Thanks,
Omri
Posted 18 Oct, 2011 07:45:43 Top
Sergey Grischenko


Add-in Express team


Posts: 7233
Joined: 2004-07-05
Hi Omri.

By default, the Add-in Express wizard suggests you to add the Version-Neutral reference (IE6 and above supported). That is why you can't find IShellUIHelper2 and IShellUIHelper3.
Of course, you can replace Interop.SHDocVw with the new version.
Posted 18 Oct, 2011 08:07:47 Top
Omri Suissa


Guest


But what will happen when my addon will be installed on IE6?
It gonna work? crash?

Omri
Posted 18 Oct, 2011 08:09:39 Top
Sergey Grischenko


Add-in Express team


Posts: 7233
Joined: 2004-07-05
If you use any method/properties that are not available in IE6, you will get runtime errors.
Posted 18 Oct, 2011 10:23:06 Top
Omri Suissa


Guest


So how can i implement IShellUIHelper2 and IShellUIHelper3 and still work on IE6?

Thank you
Posted 18 Oct, 2011 10:24:36 Top
Sergey Grischenko


Add-in Express team


Posts: 7233
Joined: 2004-07-05
You need to implement all of these interfaces. IE will call the corresponding interface automatically.
By the way, you can define any interfaces manually in the code. Please use the Reflector tool to extract the interface definitions.
Posted 18 Oct, 2011 11:03:06 Top
Omri Suissa


Guest


Thanks

Omri
Posted 18 Oct, 2011 11:04:18 Top