CPP
(([다이얼로그*)AfxGetMainWnd())->[함수]
이런식으로 하면 됩니다. App 참조는
CPP
(([APP명]*)AfxGetApp())->[함수나 변수]
당연히 Public 함수만 되겄죠!!