Just wanted to know in general what happens in this case, actually the problem is that one of my projects is using shell32.dll which compiles and executes fine on windows 7 PC however fails on other system like windows xp giving an runtime error

Unable to cast COM object of type 'System.__ComObject' to interface type 'Shell3 2.Shell'

I went through so many web resources but the results did not work for me.

有帮助吗?

解决方案

The switch is documented here.

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top