Solved

Jump to function implementation in VC++

Posted on 2010-08-25
6
336 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
Comment Utility
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
Comment Utility
Choose from menu View->Code Definition window to see the implementation.
0
 

Author Comment

by:kjc1111
Comment Utility
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
How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

 
LVL 44

Expert Comment

by:AndyAinscow
Comment Utility
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
Comment Utility
Or - do you not get those menu points from the context menu (right mouse click) ?
0
 

Author Comment

by:kjc1111
Comment Utility
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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
iSeries DB2 Query 2 83
Copying WordPress Pages 5 63
eclipse formatting 6 38
Problem to open Excel file 15 37
Introduction: Dynamic window placements and drawing on a form, simple usage of windows registry as a storage place for information. Continuing from the first article about sudoku.  There we have designed the application and put a lot of user int…
Exception Handling is in the core of any application that is able to dignify its name. In this article, I'll guide you through the process of writing a DRY (Don't Repeat Yourself) Exception Handling mechanism, using Aspect Oriented Programming.
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…
THe viewer will learn how to use NetBeans IDE 8.0 for Windows to perform CRUD operations on a MySql database.

772 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

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now