我自己建了一个对话框类,想通过按钮调用CProgramView里的一个函数,比如说A(),该怎么实现啊,我已经在对话框CPP里添加了ProgramView.h和 MainFrm.h ,写了一句想验证下能否调用
CProgramView* pView = (CProgramView*)((CMainFrame*)AfxGetMainWnd())->GetActiveView();
结果报
error C2143: syntax error : missing ';' before '*'
error C2501: 'CProgramDoc' : missing storage-class or type specifiers
error C2501: 'GetDocument' : missing storage-class or type specifiers
哪位大侠能帮帮我啊,不胜感激~
CProgramView* pView = (CProgramView*)((CMainFrame*)AfxGetMainWnd())->GetActiveView();
结果报
error C2143: syntax error : missing ';' before '*'
error C2501: 'CProgramDoc' : missing storage-class or type specifiers
error C2501: 'GetDocument' : missing storage-class or type specifiers
哪位大侠能帮帮我啊,不胜感激~
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货