Re: View goes to declaration

Tech-Archive recommends: Fix windows errors by optimizing your registry

From: Bruce E. Stemplewski (BruceStemplewski_at_hotmail.com)
Date: 02/20/05


Date: Sun, 20 Feb 2005 11:23:27 -0500

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(MyNameSpace::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(MyNameSpace::MyClass2* pC)
{
                        return 0;
}

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


Relevant Pages

  • Re: Class View goes to declaration
    ... Bruce E. Stemplewski wrote: ... > I have read most of the post relating to this problem but they seem to ... in fact it even has a problem if the namespace block is defined anywhere. ...
    (microsoft.public.vsnet.ide)
  • Class View goes to declaration
    ... it goes to the declaration of the function as opposed to the ... I have read most of the post relating to this problem but they seem to ... Bruce E. Stemplewski ...
    (microsoft.public.vsnet.ide)
  • Re: Garmin II+ and 12xl protocol?
    ... Bruce E. Stemplewski wrote: ... to declare #pragma packbefore the data structures, ... embeded VBA program in MS Access and convert to a stand alone C or C++ ...
    (sci.geo.satellite-nav)
  • Re: burn up
    ... Bruce E. Stemplewski wrote: ... is it just the high velocity? ... cause combustion. ...
    (sci.geo.satellite-nav)
  • Re: Objects only showing under library in VB - First attempt at ATL VC 7.0
    ... Bruce E. Stemplewski wrote: ... The library entry does show and there are objects under that. ... GarXface OCX and C++ Class Library for the Garmin GPS ...
    (microsoft.public.vc.atl)