interop Type SHDocVw.ShellWindowsClass cannot be embedded


  • Part of my code is like this;

    SHDocVw.WebBrowser= null;

    SHDocVw.ShellWindows  sw = new SHDocVw.ShellWindowsClass();

    foreach (SHDocVw.WebBrowser ie in sw)  // look for available browser windows




    But the first appearance of SHDocVw.ShellWindowsClass gives an error

    "interop Type SHDocVw.ShellWindowsClass cannot be embedded, use the applicable interface instead"

    I am working with Windows 7 home premium 64 bits

    .NET Framework 4.0

    Visual C# 2010 express

    I like to know what is the applicable interface?


    giovedì 5 agosto 2010 18:44