interface implementation versus activex library

Hi

I am using an ActiveX library. For example, I have one object in this library with a method, accepting one object as parameter. This object is defined as an interface of this same library.

So, I implemented the interface to make my own object, and use it to call this method. The code compile but I have a runtime exception.

EIntfCastError Interface not supported

I have no idea about this error message but maybe that the library was written in Delphi...

Any idea how to get more info about this error


Answer this question

interface implementation versus activex library

  • Stuby085

    The error append when I call the activex object with my objectg as a parameter

    for example

    line1
    I build an instance of the interface with my own implementation

    line2
    I call the activex object (third party library) with my instance

    The runtime error occur on line 2...

  • Kayron Mercieca

    Can you post some code that show how you implement interface or how this interface declared in C#


  • Mr MTA

    Hi!

    Did you try to debug this app to find where this exception happens What code on your side make this exception


  • interface implementation versus activex library