For Programmers: Free Programming Magazines  


Home > Archive > Visual Studio > February 2005 > View goes to declaration









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author View goes to declaration
Bruce E. Stemplewski

2005-02-19, 8:58 pm

Posted this in Microsoft.public.vsnet.ide but there does not seem to be
a lot going on there.


I am having a problem when I double click on a function within Class
View, it goes to the declaration of the function as opposed to the
definition. Some functions seem to work but others don't.

I am working with a C++ project in VS .NET 2003.

I have read most of the post relating to this problem but they seem to
be for 2002. I have tried moving the text and turning off outlining as
suggested by the posts.

Is there anyway to fix this problem? It is very annoying.


--
Bruce E. Stemplewski
GarXface OCX and C++ Class Library for the Garmin GPS
www.stempsoft.com
Bruce E. Stemplewski

2005-02-20, 3:58 pm

Bruce E. Stemplewski wrote:
> Posted this in Microsoft.public.vsnet.ide but there does not seem to be
> a lot going on there.
>
>
> I am having a problem when I double click on a function within Class
> View, it goes to the declaration of the function as opposed to the
> definition. Some functions seem to work but others don't.
>
> I am working with a C++ project in VS .NET 2003.
>
> I have read most of the post relating to this problem but they seem to
> be for 2002. I have tried moving the text and turning off outlining as
> suggested by the posts.
>
> Is there anyway to fix this problem? It is very annoying.
>
>



In case anyone is actually reading this newsgroup, I figured out the
problem.

Seems the parser has a problem with the namespace block


namespace MyNameSpace{

int MyClass1::MyFunction(MyClass2* pC)
{
return 0;
}


}


You have to do this:



int MyNameSpace::MyClass1::MyFunction(MyName
Space::MyClass2* pC)
{
return 0;
}


in fact it even has a problem if the namespace block is defined anywhere.



namespace MyNameSpace
{

AnotherClass c;
}

int MyNameSpace::MyClass1::MyFunction(MyName
Space::MyClass2* pC)
{
return 0;
}


--
Bruce E. Stemplewski
GarXface OCX and C++ Class Library for the Garmin GPS
www.stempsoft.com
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com