C# - What happens if I set dll option "embedded interop type" to false or true in vs10? [closed]

StackOverflow https://stackoverflow.com/questions/19730635

سؤال

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