473,404 Members | 2,137 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,404 software developers and data experts.

BUG?: Browser information and Namespaces

I am trying to get browse information for a VS.net 2003 C++ project,
however I am running into trouble resolving methods within a
namespace. From within the object browser, all methods within a class
report "No references available for this item" when the class is
within a namespace. If I remove the namespace, then VS is able to
resolve the references correctly. This problem does not affect member
variables.

The following code exhibits the problem (generated from a default
console app with browse information enabled):

namespace test
{
class TestClass
{
public:
TestClass(){}

~TestClass(){}

void TestMethod(){}

public:
bool testVariable;
};
}

using namespace test;

int _tmain(int argc, _TCHAR* argv[])
{
TestClass test;

test.TestMethod();

test.testVariable = true;

return 0;
}

In this case TestMethod() reports no references available whilst
testVariable correctly identifies the line test.testVariable = true;.
Removing the namespace resolves the problem entirely.

I suspect that this is a bug in VS.net 2003. I noticed this thread:

http://groups.google.com/groups?q=qu...gle.com&rnum=1

which suggests this is a known issue that was being worked on. It also
suggests that the issue was to be fixed in a future release (this
thread was November 2002) and I was wondering whether this should have
been addressed for VC 7.1.

Many thanks,

Chris
Nov 16 '05 #1
2 1054
Hi Chris,

Thanks for your post. I reproduced the problem on my side with both VS .NET
2002 and 2003. I am now checking the status of this issue with our
Developer Team. Please feel free to let me know if you have any problems or
concerns.

Have a nice day!

Regards,
HuangTM
This posting is provided "AS IS" with no warranties, and confers no rights.

Nov 16 '05 #2
Dear Chris,

Thank you very much for your feedback. As you know, this is a known issue
and it is being investigated. It is possible that this may be resolved in
the next version of Visual Studio .NET, but I cannot guarantee a resolution
of this issue at this time.

Please feel free to let me know if you have any problems or concerns.

Have a nice day!

Regards,

HuangTM
Microsoft Online Partner Support
MCSE/MCSD

Get Secure! ¨C www.microsoft.com/security
This posting is provided ˇ°as isˇ± with no warranties and confers no rights.
Nov 16 '05 #3

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

Similar topics

18
by: Steven Bethard | last post by:
In the "empty classes as c structs?" thread, we've been talking in some detail about my proposed "generic objects" PEP. Based on a number of suggestions, I'm thinking more and more that instead of...
5
by: Alan Mackenzie | last post by:
I've recently moved onto a C++ project with a large number of directories (several hundred) containing an even larger number of C++ source files. There are vastly more ways in C++ to obfuscate a...
12
by: Kepler | last post by:
How do you get the height of the client browser in IE? Both document.body.clientHeight and document.body.offsetHeight return the height of the document. If the page is long and there's a vertical...
0
by: Matt S. | last post by:
This kind of an obscure problem. Anyway, I am fairly new to .NET, and I am using VC++.NET 2003. I am interested in using the .NET api as supplied by Autodesk for AutoCAD 2005. Now, I have...
11
by: Random | last post by:
I'm confused about the proper use and usefulness of namespaces. I beleive I understand the purpose is so the developer can put classes within namespaces to essentially organize your code. And I...
3
by: Edb | last post by:
Greetings, I have been dabbling with .Net for a year and have a bunch of snippets and resources, books, etc. Of everything I have, nothing explains how to use the object browser. Is there any...
4
by: cr113 | last post by:
I can't seem to make sense out of the Object Browser in VB.NET. Here's one example. I often use the the Sleep method found in the Thread object like this: Imports System.Threading Private...
0
by: Derek | last post by:
I am creating an intranet using Visual Web Developer Express Edition. Everything has been working OK until yesterday when I started getting 62 messages all beginning "Could not find schema...
15
by: CMM | last post by:
So I'm half way through overseeing a large project in ASP.NET 2.0. My superiors have decided that it would be nice if we ensured the site worked on all the major platforms (as they see it: IE,...
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: 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
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

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.