This is a migrated thread and some comments may be shown as answers.

NonComVisibleBaseClass

1 Answer 119 Views
Dock
This is a migrated thread and some comments may be shown as answers.
Zemser
Top achievements
Rank 1
Zemser asked on 26 Sep 2007, 10:43 AM
I creaded some derived class DocumentClientInfo inherited from DocumentPane.
Into DocumentClientInfo class i put webBrowser control (MS) as folow:

[PermissionSet(SecurityAction.Demand, Name = "FullTrust")] 
    [System.Runtime.InteropServices.ComVisibleAttribute(true)] 
    public partial class DocumentClientInfo : DocumentPane 
    { 
        
        public DocumentClientInfo() 
            : base() 
        { 
            InitializeComponent(); 
 
            webBrowser1.ObjectForScripting = this
 
            webBrowser1.DocumentText = "<html><body><input id=\"chk1\" type=\"checkbox\" onclick=\"window.external.Test();\" /></body></html>"
        } 
 
         public void Test() 
        { 
            MessageBox.Show("Ok"); 
         } 
 

On raising click event I get following  message:
A QueryInterface call was made requesting the class interface of COM 
visible managed class 'DocumentClientInfo'. However since this class derives from
non COM visible class 'Telerik.WinControls.Docking.DocumentPane', the QueryInterface call will fail. This
is done to prevent the non COM visible base class from being
constrained by the COM versioning rules.
Haw can resolve this?
Thanks.

1 Answer, 1 is accepted

Sort by
0
Julian Benkov
Telerik team
answered on 26 Sep 2007, 03:18 PM
Hi Roman,

Currently the DockingManager and its IDockable windows do not support and are to visible to COM. We have added this feature to our plans for implementation in one of our next releases. Thank you for your feedback.

 
Sincerely yours,
Julian Benkov
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
Tags
Dock
Asked by
Zemser
Top achievements
Rank 1
Answers by
Julian Benkov
Telerik team
Share this question
or