Re: Overrides Declare Function "X.dll"?

by Joe HM on 11/1/2007 2:17:00 AM Hello -

That works ... thanks! I called the function XDelegate and used the
Alias to point to "X" inside of the *.dll.

Thanks again,
Joe



On Oct 31, 2:48 pm, "Herfried K. Wagner [MVP]" <hirf-spam-me-
h...@gmx.at> wrote:
> "Joe HM" <unixve...@yahoo.com> schrieb:
>
>
>
>
>
> > I was wondering what I need to do in order to Overrides a Function
> > that is Declare'd?
>
> > Here it what I have
>
> > Class Base
> > Public Overridable XYZ(ByVal A As String)
> > End Class
>
> > Class Derived
> > Inherits Base
>
> > Public Overrides Declare Function XYZ Lib "X.dll" (ByVal A As
> > String)
> > End Class
>
> > Dim X As Base
>
> > If ...
> > Base = New Derived
> > End If
>
> Make the 'Declare' private and define an overridable method which wraps the
> declared function.
>
> --
> M S Herfried K. Wagner
> M V P <URL:http://dotnet.mvps.org/>
> V B <URL:http://dotnet.mvps.org/dotnet/faqs/>- Hide quoted text -
>
> - Show quoted text -