Prev: 'this' parameter in virtual function calls
Next: "PORTING C" > Over including header declarations?
From: Dave Cullen on 31 Dec 2009 09:49 Using VS 2005 C++ if I right click on a function name in the main code and select "Go To Definition" it will take me to the header file declaration instead of to the function in the cpp file. It behaves exactly as if I had clicked "Go To Declaration". This only happens with functions in two of my source files, the others work fine. I've deleted the IntelliSense files and rebuilt the project to no avail. The only common element I can think of is that when the project was first created those cpp's were located in the project directory and I have since moved them to a common source directory. AFAIK all references to the old location should be gone. While inside the cpp I can still get to functions via the pulldown list, but from elsewhere in the project it always brings me to the header file. Any ideas? Thanks drc
From: David Lowndes on 31 Dec 2009 10:14 >Using VS 2005 C++ if I right click on a function name in the main code and >select "Go To Definition" it will take me to the header file declaration >instead of to the function in the cpp file. It behaves exactly as if I had >clicked "Go To Declaration". This only happens with functions in two of my >source files, the others work fine. Are those source files in the project files collection? Dave
From: Dave Cullen on 31 Dec 2009 10:58 They are visible in the Solution Explorer window, so yes. Dave "David Lowndes" <DavidL(a)example.invalid> wrote in message news:nsfpj5l28klt02v2mandd0aj7sucbch5m1(a)4ax.com... > >Using VS 2005 C++ if I right click on a function name in the main code > >and >>select "Go To Definition" it will take me to the header file declaration >>instead of to the function in the cpp file. It behaves exactly as if I had >>clicked "Go To Declaration". This only happens with functions in two of my >>source files, the others work fine. > > Are those source files in the project files collection? > > Dave
From: David Lowndes on 1 Jan 2010 05:36 >They are visible in the Solution Explorer window, so yes. I'm not sure what the issue is then. If you've already tried closing the solution and deleting the ncb file, I'm out of suggestions. Dave
|
Pages: 1 Prev: 'this' parameter in virtual function calls Next: "PORTING C" > Over including header declarations? |