In Visual C++ 2013 Professional, when I right-click CWinApp::Run()
, an MFC function, in the afxwin.h
header file and choose "Go To Definition" in the context menu, nothing comes up. The definition is also unavailable on this function's MSDN article. How can I fix the problem and find the definition? What would cause definitions to be unavailable?
You can put a break point on any MFC function then debug it, and step in to the function (F11 key
or "Step in" command). This will take you directly to source code, most of the time.
In this case, you may be redirected to this file for VC 2013:
C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\atlmfc\src\mfc\appcore.cpp