Improve company productivity with a Business Account.Sign Up

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 373
  • Last Modified:

Jump to function implementation in VC++

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
kjc1111
Asked:
kjc1111
  • 3
  • 2
1 Solution
 
AndyAinscowFreelance programmer / ConsultantCommented:
Right click on the function and will see a context menu.  See picture, I think you want the options arrowed

0015.jpg
0
 
arun123prasadCommented:
Choose from menu View->Code Definition window to see the implementation.
0
 
kjc1111Author Commented:
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
Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

 
AndyAinscowFreelance programmer / ConsultantCommented:
From the menu - definition should go to the cpp file (if in a cpp file), declaration should go to the header file.
0
 
AndyAinscowFreelance programmer / ConsultantCommented:
Or - do you not get those menu points from the context menu (right mouse click) ?
0
 
kjc1111Author Commented:
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
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

  • 3
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now