It crashes you say.....
Are you sure that IRD_CONTEXTMENU1 actually represents your resource as when VC++ creates a menu it would usually call this IDR_CONTEXTMENU1
I tried the following and it worked ok
Code:
void CTestKuphDlg::OnRButtonUp(UINT nFlags, CPoint point)
{
CPoint mPointCurrent;
CMenu mPopupMenu;
mPopupMenu.LoadMenu(IRD_CONTEXTMENU1);
ClientToScreen(&point);
CMenu *pContextMenu = mPopupMenu.GetSubMenu(0);
pContextMenu->TrackPopupMenu(TPM_LEFTALIGN |
TPM_LEFTBUTTON | TPM_RIGHTBUTTON | TPM_RETURNCMD |
TPM_NONOTIFY,point.x, point.y,GetActiveWindow(), NULL);
pContextMenu->DestroyMenu();
CDialog::OnRButtonUp(nFlags, point);
}