473,779 Members | 2,092 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

inheritance, class library, and compile errors

Here is the problem. I built LibA and LibB as class library projects in the
same solution as my web application HelloWorldWebAp p. Wherever necessary I
added project references. Everything compiled nicely and ran smoothly.
After I finished my development, I wanted to use LibA across multiple
projects so I removed LibA from the solution and copied the LibA.dll to a
common location and added it to HelloWorldWebAp p as a file reference. Now,
whenever I compile HelloWorldWebAp p I receive the following error.

'Public Property ds() As System.Data.Dat aSet' is declared in project
'LibA.dll', which is not referenced by project 'HelloWorldWebA pp.dll'.

Keep in mind that LibB still exists in the solution and now references LibA
by file. HelloWorldWebAp p references LibB by project and now references LibA
by file.

If I run the application without debugging the web application works fine.
How do I fix the compilation errors?

Also, can anyone recommend a great article/walkthrough on building
distributable class libraries and properly maintaining and sharing them
within SourceSafe?

Here’s the code:

‘----------------------------------------------------
Class Library LibA

Public MustInherit Class MyWebPage : Inherits System.Web.UI.P age

'Local Dataset property
Private m_ds As DataSet
Public Property ds() As DataSet
Get
ds = m_ds
End Get
Set(ByVal Value As DataSet)
m_ds = Value
End Set
End Property

End Class

‘----------------------------------------------------
Class Library LibB

Public Class WebPage : Inherits LibA.MyWebPage

End Class

‘----------------------------------------------------
HelloWorldWebAp p Web Project (helloworld.asp x web page)

Public Class helloworld : Inherits LibB.WebPage

Private Sub Page_Load(ByVal sender As System.Object, ByVal e As
System.EventArg s) Handles MyBase.Load

ds = New DataSet ’Compilation Error occurs here

End Sub

End Class

‘----------------------------------------------------
Nov 19 '05 #1
0 954

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
4381
by: AIM | last post by:
Error in msvc in building inheritance.obj to build hello.pyd Hello, I am trying to build the boost 1.31.0 sample extension hello.cpp. I can not compile the file inheritance.cpp because the two files containing some templates: adjacency_list.hpp and mem_fn.hpp can not compile. Does anyone have any solutions?
4
8205
by: Roy Pereira | last post by:
I have an application that is composed of a set of "Content" dlls and a viewer application. The viewer calls a standard set of functions that are present in all the dlls. I maintain this by making my contnent dlls implement an interface created in vb6. The viewer application is bound to this interface. This way, I am able to add Content without redeploying the dlls (I just have to add the new dlls). I want to write new content for...
1
379
by: Tony Johansson | last post by:
Hello! What does this mean. "The use of inheritance to provide various implementations of a single abstraction tightly binds these implementations to the abstarction. Therfore it, is difficult to update the client's code and reuse the abstraction, In C++, the complete class definition, including the private and protected sections, is needed to compile the client's code; this leads to a tight coupling between the abstraction and its...
3
582
by: Tony Johansson | last post by:
Hello experts! I have a small program that is using multiple inheritance. There are 4 classes involved I get 4 compile error that I can't figure out why. It's this row which is located in the main program see below that is causing these compile errors. cout << p->getName() << endl; Here is the first compile error the other might be a consequesce of the first one.
14
12919
by: Steve Jorgensen | last post by:
Recently, I tried and did a poor job explaining an idea I've had for handling a particular case of implementation inheritance that would be easy and obvious in a fully OOP language, but is not at all obvious in VBA which lacks inheritance. I'm trying the explanation again now. I often find cases where a limited form of inheritance would eliminate duplication my code that seems impossible to eliminate otherwise. I'm getting very...
45
6368
by: Ben Blank | last post by:
I'm writing a family of classes which all inherit most of their methods and code (including constructors) from a single base class. When attempting to instance one of the derived classes using parameters, I get CS1501 (no method with X arguments). Here's a simplified example which mimics the circumstances: namespace InheritError { // Random base class. public class A { protected int i;
6
3412
by: ryan.d.rembaum | last post by:
Hello, I have code that I wish to use in many web applications. Basically sort of stand utility stuff. So from Visual Studio Project I select add a component and chose Component Class. Lets say I enter code at the end of this question in to the code section. How then would I reference this in a new Web Application (or in the same web application for that matter?)
0
863
by: BruinBySea | last post by:
Here is the problem. I built LibA and LibB as class library projects in the same solution as my web application HelloWorldWebApp. Wherever necessary I added project references. Everything compiled nicely and ran smoothly. After I finished my development, I wanted to use LibA across multiple projects so I removed LibA from the solution and copied the LibA.dll to a common location and added it to HelloWorldWebApp as a file reference. Now,...
6
3828
by: Bart Simpson | last post by:
I remember reading on parashift recently, that "Composition is for code reuse, inheritance is for flexibility" see (http://www.parashift.com/c++-faq-lite/smalltalk.html#faq-30.4) This confused me somewhat as I have always thought you get code reuse "for free" with inheritance. Am I missing something?. Will someone care to explain ??
0
9633
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9474
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10137
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10074
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
6724
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5373
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5503
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4037
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3632
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.