Visual Basic .NET Forums  
Click here to advertise with us

Go Back   Visual Basic .NET Forums > VB.NET > VB.NET General Discussion

VB.NET General Discussion VB.NET general discussion area

VB.NET Forums Newsletter Signup:
Email address:


Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 02-08-2010, 8:46 PM
VB.NET Forum Newbie
.NET Framework: .NET 3.5
 
Join Date: Nov 2009
Posts: 3
Reputation: 0
Karlman is on a distinguished programming path ahead
Default VB.Net DLL wrapper (pass through reference)

I have a set of 3rd party DLLs that I would like to simplify for internal use by creating a wrapper class.

Is there a way to do this so that the final application that uses my wrapper DLL does not have to set a reference to the 3rd party DLLs directly? I want to be able to use inhertiance in my classes and also public enums in the 3rd party DLL.

I guess what I want is a way for my wrapper class to pass through the reference to the 3rd party DLLs.

Thank you!
Karl
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 02-09-2010, 1:14 AM
jmcilhinney's Avatar
VB.NET Forum Moderator
.NET Framework: .NET 3.5 (VS 2008)
 
Join Date: Aug 2004
Location: Sydney, Australia
Age: 40
Posts: 6,124
Reputation: 541
jmcilhinney VB.NET gold medalistjmcilhinney VB.NET gold medalistjmcilhinney VB.NET gold medalistjmcilhinney VB.NET gold medalistjmcilhinney VB.NET gold medalistjmcilhinney VB.NET gold medalistjmcilhinney VB.NET gold medalistjmcilhinney VB.NET gold medalistjmcilhinney VB.NET gold medalistjmcilhinney VB.NET gold medalistjmcilhinney VB.NET gold medalist
Default

Any app that references your DLL won't have to reference the third-party DLL UNLESS it uses classes that inherit classes from that DLL. In that case it needs the extra reference to get the base functionality. If your app doesn't use any such classes then it won't need the reference.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 02-09-2010, 1:39 AM
VB.NET Forum Newbie
.NET Framework: .NET 3.5
 
Join Date: Nov 2009
Posts: 3
Reputation: 0
Karlman is on a distinguished programming path ahead
Default

That is exactly the functionality I was looking for. I want to inherit from the 3rd party DLL but hoped to pass through the reference somehow. I also can't see public enums from the DLL either.

I guess I will either have to do the references or not inherit and have to abstract all the methods I want.

Thank you for the reply.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Bookmarks

Tags
dll, reference, vb.net, wrapper


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

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 On





All times are GMT -4. The time now is 11:30 AM.

Powered by vBulletin® Version 3.8.5
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.3.2


For advertising opportunities click here.