Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > Inherit, hooking into existing 3rd party DLL class

Reply
Thread Tools

Inherit, hooking into existing 3rd party DLL class

 
 
Mike
Guest
Posts: n/a
 
      04-25-2009
Folks, still relatively new to ASP.NET. I need to know if this is
possible.

I have a project where I have to to integrate a 3rd party ASP.NET web
server product with our backend web server. I was provided with the
3rd party ASP.NET VB source code code and I have worked out the
necessary integrate logic and requires changes to their code which
creates DLLs.

Now I have been cleaning up and reducing the source code changes and
use possibly class inheritance to accomplish the task.

In short, the 3rd party code has one VENDOR.DLL with the following
outline:

Option Strict On
Option Explicit On

Imports System
Imports System.Collections
Imports System.Web
Imports System.Web.Security
Imports Vendor.Common

Namespace Vendor.Common.Authentication
Public Class Login

Public Shared Function UserExist(ByVal s As String) As Int32
' some code
End Function

Public Shared Sub Login(ByVal User As Vendor.Common.Components.User,

ByVal Persist As Boolean)
' some code
End Function
....
....
other public and private functions
End Class
End NameSpace

In the project, I had to modify the Login() function by adding some
extra code.

My question is there a method where I can overlay this DLL class with
my own class, with the one Login function override which then call
back the parent Login function? Something like so in my own helper
MyApplet.DLL library:

Namespace Vendor.Common.Authentication
Public Class Login
Inherits Vendor.Common.Authentication
Overrides Public Shared Sub Login(ByVal s As _
Vendor.Common.Components.User,

ByVal p As Boolean)
' some code
vendor.common.authentication.authentication.login( s,p)
End Function
End Class
End NameSpace

I know the above code is invalid. But I think OOPs people know what I
am trying to accomplish.

Again, the goal here is to not require source code change. But if
required, then that is possible. Unfortunately, the vendor did not
make the code very flexible. What I want do to is just provide a
helper MyApplet.DLL that if all possible hook or replace this one
class in the vendor library.

Possible?

Thanks
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Existing Dll - using Functions from an existing dll Tristin.Colby@gmail.com Ruby 0 02-05-2008 07:38 PM
ctypes and 3rd party dll hkimball@eti-web.com Python 0 01-08-2008 04:57 AM
Help hooking into 2.0 membership w/existing users, roles dw ASP .Net Security 5 05-14-2006 10:03 PM
ReportViewer - 3rd Party Web Hosting - Deploying .DLL Files =?Utf-8?B?c3RyYXp6?= ASP .Net 0 01-27-2006 07:57 PM
COM Interop problem with 3rd Party DLL using C# under ASP.NET =?Utf-8?B?VUtQb3N0aWU=?= ASP .Net 0 09-23-2004 11:23 AM



Advertisments