Announcement

Collapse
No announcement yet.

Trying to convert some C++ Code and have a question

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Thomas Tierney
    replied
    Thanks!!

    Leave a comment:


  • Kev Peel
    replied
    You need to assign the class to an interface, see the code here:

    COM Objects: Passing Data Between Classes Using INHERIT

    Leave a comment:


  • Trying to convert some C++ Code and have a question

    In my c++ code I call a Class Method from my destructor
    Code:
    Class::~Class()
    {
       Close();
    }
    Class::Close()
    {
    
    
    }
    But the method also needs to be public so I can call
    MyClass->Close();

    I would like to do this from PB Code But
    Code:
    Class myClass
       Class Method Destroy()
          Me.Close()
       End Class
       interface IMyClass
          Inherit IDispatch
          Method Close()
          End Method
       End interface
    End Class
    This does not compile, I assume this is a limitation. Does anyone have an Idea?

    Thanks
Working...
X