473,385 Members | 1,973 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,385 software developers and data experts.

Trouble converting projects from VS7.1 TO VS9 - Error BC30284

Hello,

I recently converted projects from VS7.1 (2003) to VS9.0 (2008) and am
getting the following error on some subroutine declarations:

error BC30284: sub 'SomeSub' cannot be declared 'Overrides' because it
does not override a sub in a base class.

The subs on which this occurs have parameters of a type that comes
from an external COM library. I have added references to the library
to both the project containing the base class and the project
containing the derived class. Does anyone know what I have to do to
get rid of this error?

Thanks much,

Juan
Aug 4 '08 #1
6 2160
Is the base class a .Net 1.1 class? If it is a .Net 1.1 class, does it, and
especially the class' subroutine being overridden, exist unchanged in 3.5?

"jn****@gmail.com" wrote:
Hello,

I recently converted projects from VS7.1 (2003) to VS9.0 (2008) and am
getting the following error on some subroutine declarations:

error BC30284: sub 'SomeSub' cannot be declared 'Overrides' because it
does not override a sub in a base class.

The subs on which this occurs have parameters of a type that comes
from an external COM library. I have added references to the library
to both the project containing the base class and the project
containing the derived class. Does anyone know what I have to do to
get rid of this error?

Thanks much,

Juan
Aug 5 '08 #2
No, the base class is our own.

However, I think I have identified the problem, but can't seem to fix
it. The problem seems to be that the paths for the reference to the
external library are different between the project containing the base
class and the project containing the derived class. When I add the
reference to the base class project (via the .NET tab), the path is to
a copy of the DLL located in the bin folder under the folder for my
Startup project. When I add the reference to the derived class
project--whether through the .NET tab or by browsing--the path is to
the original DLL located in a subfolder of Program Files\Common Files.

This library is third-party and a few years old, so I may need to
download a more recent version, but I don't think it should matter for
this problem. So, any ideas how I can get the two projects on the same
page? I'll keep messing around with it and maybe download a newer
version of the library.

Thanks, Juan
Aug 6 '08 #3
I fixed my problem. I deleted the copy of the DLL, went through my
projects and fixed the references by browsing to the original. I don't
know if the references got messed up in converting the projects, if
the older compiler didn't care or if I did something to mess them up
after the conversion, but its working now! :)

Juan
Aug 6 '08 #4
I fixed my problem. I deleted the copy of the DLL, went through my
projects and fixed the references by browsing to the original. I don't
know if the references got messed up in converting the projects, if
the older compiler didn't care or if I did something to mess them up
after the conversion, but its working now! :)

Juan
Aug 6 '08 #5
It sounds like some kind of conflict going on in the settings regarding the
"copy local" property.

Generally though, I prefer having a multiproject solution in the scenario
you are describing. All of your projects would belong to one solution, and
that solution is where you work. I don't remember if VS 2003 allowed this,
it was so long ago...

The references you add then, are just references to the other projects. I
wouldn't add a reference to this 3rd party dll unless you needed it each
place. It should come along with the project which is dependent when you add
the reference to your project to it's derived project.
"jn****@gmail.com" wrote:
No, the base class is our own.

However, I think I have identified the problem, but can't seem to fix
it. The problem seems to be that the paths for the reference to the
external library are different between the project containing the base
class and the project containing the derived class. When I add the
reference to the base class project (via the .NET tab), the path is to
a copy of the DLL located in the bin folder under the folder for my
Startup project. When I add the reference to the derived class
project--whether through the .NET tab or by browsing--the path is to
the original DLL located in a subfolder of Program Files\Common Files.

This library is third-party and a few years old, so I may need to
download a more recent version, but I don't think it should matter for
this problem. So, any ideas how I can get the two projects on the same
page? I'll keep messing around with it and maybe download a newer
version of the library.

Thanks, Juan
Aug 6 '08 #6
Mike,

I do have a multiproject solution and yes, VS 2003 allows this.
However, your suggestion regarding references didn't workout for me. I
end up with 'not defined' (BC30002) and 'not referenced' (BC32004)
errors. Thanks anyway.

Juan

Aug 7 '08 #7

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

Similar topics

0
by: Robert | last post by:
I get these errors when creating a asp .net web application project in VS 2003 on a remote web server: "Microsoft Development Environment The Web was created successfully, but an error occurred...
4
by: Driesen via SQLMonster.com | last post by:
Hi guys I having trouble with this sproc. I get the following error when testing: Server: Msg 245, Level 16, State 1, Procedure UTL_CompletenessCheckLoan, Line 231 Syntax error converting the...
3
by: j.a. harriman | last post by:
Hi, On MSDN I know there is a JScript example (Upgrading Visual C++ Projects to Visual Studio .NET in Batch Mode) to upgrade VS6 C++ projects to .NET solutions. It converts the project files...
1
by: Kevin | last post by:
I open the VB6 project in Visual Studio 2005 (not the BETA version) which starts the conversion wizard. It goes through the whole conversion process, then comes up with the error: Unable to...
2
by: RSH | last post by:
Hi, I am having a little trouble with a Visual Studio project. I moved and existing project to a Network share and now when I go to run the project in Debug mode I get an error saying "The...
2
by: josh | last post by:
Hi, I am trying to validate cXML documents against cXML.dtd using the XmlValidatingReader. If I set the XMLValidatingReader's ValidatingType to ValidationType.DTD, I get the following...
6
by: Nathan Sokalski | last post by:
I recently converted some ASP.NET 1.1 projects of mine, created with Visual Studio .NET 2003, to Web Application Projects in Visual Studio .NET 2005 so that I could use ASP.NET 2.0 (All my ASP.NET...
7
by: Coleen | last post by:
Does anyone have any good detailed information on the conversion process? We are in the process of converting 2 projects from 2003 to 2005 and have some conversion errors that I can not find...
0
by: joshblair | last post by:
Hello, I am trying to post XML documents to a third party using the HttpWebRequest. This URL uses HTTPS (SSL) but I don't have a client certificate to deal with. Apparently they are using...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
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,...
0
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...
0
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...

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.