Article ID: 143430
Article Last Modified on 7/5/2005
/* Compile options needed: /FR
*/
class CTest
{
public:
// Member function
void MemFunc();
// Member variable
int m_i;
};
void CTest::MemFunc()
{
}
// When you browse (Tools/Browse Menu) for the symbol 'MemFunc',
// the 'References' list shows all the lines where 'MemFunc' is
// referenced EXCEPT for the following source line.
// Pointer to member function
void (CTest::*pmfn)() = &CTest::MemFunc;
// When you browse for the symbol 'm_i', the 'References' list
// shows all the lines INCLUDING the following source line.
// Pointer to member variable
int CTest::*pmint = &CTest::m_i;
void main()
{
CTest testObj;
testObj.MemFunc();
int j = testObj.m_i;
}
Additional query words: kbVC400bug
Keywords: kbbug kbfix kbvc500fix kbcpponly kbcompiler KB143430