locked
Inheriting from a vb6 com library RRS feed

  • Question

  • hello,

    I have a VB6 dll that I would like to import into VB.NET to extend the features of the class that it contains.

    I have created the wrapper for this with the following command

    tlbimp c:\windows\system32\kwatchserver.dll /out:NETkWatchServer.dll

    And than import this into my application in .NET.  I create a simple class and attempt to inherit from a class in the VB6 NETkWatchServer.dll and it will not let me do it?  I get the error "Class can inherit only from other classes".

    I am unsure what I have to do to make this work?  I know I could create a manual rapper for this, but there are about 50 properties on each class with something like 200 classes, inheriting would be a lot easier.

    Thanks


    matvdl

    Thursday, November 15, 2012 9:37 AM

Answers

  • Hello,

    I think it's not possible to inherit from a unmanaged DLL like yours.

    Sorry for any misunderstood.


    Think again!

    Friday, November 16, 2012 7:13 AM