Click here to Skip to main content
15,920,708 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: VBScript / JScript: out Parameter Pin
Roland Bär23-Jan-04 5:12
Roland Bär23-Jan-04 5:12 
QuestionWhat's wrong with my codes?? Pin
Anonymous22-Jan-04 4:09
Anonymous22-Jan-04 4:09 
AnswerRe: What's wrong with my codes?? Pin
gpa200026-Jan-04 5:20
gpa200026-Jan-04 5:20 
GeneralWord Macro Pin
Shenthil22-Jan-04 4:03
Shenthil22-Jan-04 4:03 
GeneralRe: Word Macro Pin
Member 206390222-Jan-04 4:31
Member 206390222-Jan-04 4:31 
GeneralNeed Help in VB.net about Vector!!! Pin
Member 83510122-Jan-04 3:53
Member 83510122-Jan-04 3:53 
GeneralRe: Need Help in VB.net about Vector!!! Pin
Ian Darling22-Jan-04 4:10
Ian Darling22-Jan-04 4:10 
GeneralNEED HELP: Reference error when using subclasses Pin
Vera21-Jan-04 20:42
Vera21-Jan-04 20:42 
I have a very annoying problem, with which I NEED HELP DESPERATELY!!
It smells like a bug to me, but I'm not sure.

SITUATION
This description is a very much simplified version of the real situation.
I have the following class structure:

ASSEMBLY ATools

References: None
Namespace : Tools
Classes : CToolClass

ASSEMBLY ABaseClasses

References: ATools
Namespace : BaseClasses
Classes : CBase1, CBase2

ASSEMBLY ASubClasses

References: ABaseClasses, ATools
Namespace : SubClasses
Classes : CSub1 Inherits BaseClasses.CBase1

ASSEMBLY AWebClasses

References: ABaseClasses, ASubClasses, ATools
NameSpace : WebClasses
Classes : CWebClass Inherits System.Web.Services.WebService

Both baseclasses have a method with signature:
Public Sub Init(ByVal parm As Tools.CToolClass)

The webclass has a method, which SHOULD look something like this:
<webmethod> _
Public Function MyWebMethod() As String
Dim oObj1 As SubClasses.CSub1 = New SubClasses.CSub1
Dim oObj2 As BaseClasses.CBase2 = New BaseClasses.CBase2
Dim oTool As Tools.CToolClass = New Tools.CToolClass
...
oObj1.Init(oTool)
oObj2.Init(oTool)
...
Return ...
End Function

PROBLEMS
The following problems occur in MyWebMethod:
1.
In the above situation, I get an error on the line "Dim oObj1 As SubClasses...": "Reference required to assembly 'ABaseClasses' containing the type 'ABaseClasses.CBase1'. Add one to your project.".
As you can see, the reference is already there.
To solve this problem for the time being, I copied CBase1 into ASubClasses and made CSub1 inherit SubClasses.CBase1.

2.
After the changes made as described in 1., another error of the same type appears: "Reference required to assembly 'ATools' containing the type 'ATools.CToolClass'. Add one to your project.". However, this error appears only on the line "oObj1.Init(oTool)", which references a subclass. It does not appear on the line "oObj2.Init(oTool)", which references a baseclass.
And again, the reference is already there.

QUESTION
1. What causes the problem?
2. What can I do to solve it?

Obviously, copying all my classes into one single assembly is not what I want. So, what should I do?

PLEASE HELP ME! Thanx a lot!
Generaldividing two polynomials Pin
khumbelo21-Jan-04 20:27
khumbelo21-Jan-04 20:27 
GeneralPlease Help!!! Opening Multiple DataAdapters at same time Gives error Pin
Tasnim21-Jan-04 19:32
Tasnim21-Jan-04 19:32 
GeneralRe: Please Help!!! Opening Multiple DataAdapters at same time Gives error Pin
Serge Lobko-Lobanovsky28-Jan-04 4:59
Serge Lobko-Lobanovsky28-Jan-04 4:59 
Generalaudio player Pin
nightmare0121-Jan-04 17:00
nightmare0121-Jan-04 17:00 
GeneralRe: audio player Pin
Dave Kreskowiak22-Jan-04 1:19
mveDave Kreskowiak22-Jan-04 1:19 
QuestionOffline database........? Pin
opusxxvii21-Jan-04 16:24
opusxxvii21-Jan-04 16:24 
AnswerRe: Offline database........? Pin
Dave Kreskowiak22-Jan-04 1:17
mveDave Kreskowiak22-Jan-04 1:17 
GeneralRe: Offline database........? Pin
opusxxvii22-Jan-04 8:23
opusxxvii22-Jan-04 8:23 
GeneralRe: Offline database........? Pin
Dave Kreskowiak22-Jan-04 11:31
mveDave Kreskowiak22-Jan-04 11:31 
GeneralRe: Offline database........? Pin
-Dr_X-24-Jan-04 13:41
-Dr_X-24-Jan-04 13:41 
GeneralCorrupt Text Files Pin
Barry Etter21-Jan-04 13:11
Barry Etter21-Jan-04 13:11 
GeneralRe: Corrupt Text Files Pin
Mike Ellison21-Jan-04 14:39
Mike Ellison21-Jan-04 14:39 
GeneralRe: Corrupt Text Files Pin
Dave Kreskowiak22-Jan-04 1:02
mveDave Kreskowiak22-Jan-04 1:02 
Generallistview + selecteditem Pin
Anonymous21-Jan-04 11:17
Anonymous21-Jan-04 11:17 
GeneralRe: listview + selecteditem Pin
Dave Kreskowiak22-Jan-04 0:57
mveDave Kreskowiak22-Jan-04 0:57 
GeneralLooking for IT Professionals on H1B Visa Transfer/Faster GreenCard Processing Pin
Keith_00221-Jan-04 10:42
Keith_00221-Jan-04 10:42 
GeneralRe: Looking for IT Professionals on H1B Visa Transfer/Faster GreenCard Processing Pin
keshavcode21-Jan-04 14:59
keshavcode21-Jan-04 14:59 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.