473,320 Members | 1,979 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

Project reference problem

Hi!

According the code below (2 class library projets):

'Project 1: ns1.Class1
Public Class Class1
Public Sub New()
Dim cls2 As New ns2.Class2
cls2.method1(Me) 'THE ERROR OCCURS HERE (on Me keyword)...
cls2 = Nothing
End Sub
End Class

'Project 2: ns2.Class2
Public Class Class2
Public Sub method1(ByVal cls1 As ns1.Class1)
'do something here...
End Sub
End Class

I get de following precompiler error:
Reference required to assembly 'class1' containing the type
'ns1.Class1'. Add one to your project.

I read similar posts on other groups but no one suggested a solution
that worked for me...
Thanks.
Dom
Jul 21 '05 #1
2 1270
"Dominic Rousseau" <do**************@dmr.ca> schrieb
'Project 1: ns1.Class1
Public Class Class1
Public Sub New()
Dim cls2 As New ns2.Class2
cls2.method1(Me) 'THE ERROR OCCURS HERE (on Me keyword)...
cls2 = Nothing
End Sub
End Class

'Project 2: ns2.Class2
Public Class Class2
Public Sub method1(ByVal cls1 As ns1.Class1)
'do something here...
End Sub
End Class


You're trying to make circular references between projects. This is not
possible.
--
Armin

How to quote and why:
http://www.plig.net/nnq/nquote.html
http://www.netmeister.org/news/learn2quote.html

Jul 21 '05 #2
"Dominic Rousseau" <do**************@dmr.ca> schrieb
'Project 1: ns1.Class1
Public Class Class1
Public Sub New()
Dim cls2 As New ns2.Class2
cls2.method1(Me) 'THE ERROR OCCURS HERE (on Me keyword)...
cls2 = Nothing
End Sub
End Class

'Project 2: ns2.Class2
Public Class Class2
Public Sub method1(ByVal cls1 As ns1.Class1)
'do something here...
End Sub
End Class


You're trying to make circular references between projects. This is not
possible.
--
Armin

How to quote and why:
http://www.plig.net/nnq/nquote.html
http://www.netmeister.org/news/learn2quote.html

Jul 21 '05 #3

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

Similar topics

8
by: Mahesh | last post by:
Hi All, When I copy and paste the project and open newer solution in Visual Studio.NET that newer solution still references files of older solution (It opens the older projects files). I...
12
by: Jones | last post by:
I am having problems with my C# project. The project was built using VS.net (original release with service pack 1). The project includes windows forms and a DLL (dot.net) After getting the...
7
by: Dan | last post by:
I'd like to have a set of more-or-less common code which I want to use for both desktop and smart device projects. I have two questions: 1. How can I set up conditional compile directives for...
2
by: David Zuckerman | last post by:
I'm developing an ASP.NET solution, and one of the things I need to do is to have it return system information for various servers on our network. I wanted to do this using the various methods of...
7
by: George Copeland | last post by:
This is a request for assistance analyzing a problem we are experiencing in our VB6 development environment. All our code is developed in VB6, and our persistance layer is SQL Server. We are...
6
by: liu | last post by:
Hi all, in my vb.net solution, i have 3 project: 1. Main-this is the startup or the base of my window application. 2. Sales-this is the project that contains all the sales info 3. Product-this...
3
by: Jerad Rose | last post by:
This is regarding Visual Studio 2003 (framework 1.1). We have several projects/libraries. Of course, many of these reference each other. If we only had one solution, we would simply add all of...
5
by: Richard J Foster | last post by:
Hi there, I have a pair of C# projects in VS2003. The first project, a dll, is referenced in the second via a project reference. The assemblies in question are delay-signed during a...
24
by: =?Utf-8?B?RHIuIFMu?= | last post by:
I am incorporating three existing programs into a new "all in one" program. I have added the three projects to the new all in one project. How do I instruct the new initial menu to launch the main...
4
by: | last post by:
I have learned about compartmentalizing my code base using Class Libraries. I have my common code such as my ORM framework broken out into their own Class Libraries, which are referenced as...
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

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.