Solved

Jump to function implementation in VC++

Posted on 2010-08-25
6
350 Views
Last Modified: 2013-12-14
In the VC++ IDE I can jump to a function definition by placing the cursor on the function name and pressing F12.  Is there a way to jump to the function implementation as well?

Thanks,
Kevin
0
Comment
Question by:kjc1111
  • 3
  • 2
6 Comments
 
LVL 44

Accepted Solution

by:
AndyAinscow earned 125 total points
ID: 33528901
Right click on the function and will see a context menu.  See picture, I think you want the options arrowed

0015.jpg
0
 

Expert Comment

by:arun123prasad
ID: 33529902
Choose from menu View->Code Definition window to see the implementation.
0
 

Author Comment

by:kjc1111
ID: 33532296
Hi Andy and Arun,

I might be missing something but I still can't seem to do it. Here is an example:

MyFile.h:
void MyFunction( int x );

MyFile.cpp
void MyFunction( int x )
{
        AfxMessageBox( _T( "Hello" ) );
}

ReferenceFile.cpp
void MyReferenceFunction( int y )
{
       MyFunction( y );
}

If my cursor is on the MyFunction call in ReferenceFile.cpp, is there a way to jump to the MyFunction implementation in MyFile.cpp (not the definition in MyFile.h).
Note that I'm using VC++ 6.0 if that makes a difference.

Thanks,
Kevin

0
Gigs: Get Your Project Delivered by an Expert

Select from freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely and get projects done right.

 
LVL 44

Expert Comment

by:AndyAinscow
ID: 33532809
From the menu - definition should go to the cpp file (if in a cpp file), declaration should go to the header file.
0
 
LVL 44

Expert Comment

by:AndyAinscow
ID: 33532817
Or - do you not get those menu points from the context menu (right mouse click) ?
0
 

Author Comment

by:kjc1111
ID: 33533143
Hi Andy,

> Or - do you not get those menu points from the context menu (right mouse click) ?

I only get "Go to Definition" in the context menu, and that goes to the header file.  They must have changed things since VC6.  I'll award the points anyway.  I'd like to upgrade but unfortunately that would mean I have to upgrade my Stingray package as well, which costs too much.

Thanks,
Kevin
0

Featured Post

Live: Real-Time Solutions, Start Here

Receive instant 1:1 support from technology experts, using our real-time conversation and whiteboard interface. Your first 5 minutes are always free.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
how to split multiple lines delimiter : 8 97
How search webpage "viewable text" only 1 75
Is there a simple front-end menu system. 9 88
Angular JS Route 3 68
Update (December 2011): Since this article was published, the things have changed for good for Android native developers. The Sequoyah Project (http://www.eclipse.org/sequoyah/) automates most of the tasks discussed in this article. You can even fin…
How to install Selenium IDE and loops for quick automated testing. Get Selenium IDE from http://seleniumhq.org Go to that link and select download selenium in the right hand columnThat will then direct you to their download page.From that page s…
The viewer will learn how to use NetBeans IDE 8.0 for Windows to connect to a MySQL database. Open Services Panel: Create a new connection using New Connection Wizard: Create a test database called eetutorial: Create a new test tabel called ee…
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.

785 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question