void CApplyBuyDlg::OnRclickList1(NMHDR* pNMHDR, LRESULT* pResult)
{
// TODO: Add your control notification handler code here
CMainFrame *pMain=(CMainFrame *)AfxGetMainWnd();
CMyView *pView=(CMyView *)(pMain->GetActiveView());
ASSERT(pView); pView->PopUpDlgListMenu();
*pResult = 0;
}出错如下
ompiling...
ApplyBuyDlg.cpp
E:\Microsoft Visual Studio\MyProjects\My\ApplyBuyDlg.cpp(223) : error C2027: use of undefined type 'CMyView'
e:\microsoft visual studio\myprojects\My\mainfrm.h(14) : see declaration of 'CMyiew'
E:\Microsoft Visual Studio\MyProjects\My\ApplyBuyDlg.cpp(223) : error C2227: left of '->PopUpDlgListMenu' must point to class/struct/union
Error executing cl.exe.我的pView明显是指针阿??
解决方案 »
- WINCE如何让画图从任意方向开始?进来有详细解释
- 急急!!!请问MFC中如何在没有Title Bar的情况下让程序运行时在任务栏上显示一行字啊
- Project : error PRJ0019: 工具从"执行注册",是什么原因 阿?
- 怎么知道计算机系统有什么端口阿?
- 嵌套结构赋初值为什么不能用变量?
- 怎么把我自己的程序生成的图形文件保存成XML文件
- 谁能介绍一下MCI怎么用?
- 画图不可以用wm_erasebkgound吗?
- 使用COM接口,BYTE指针类型的数据如何与VB,ASP这样的脚本进行数据传递
- vc 二维数组 转化matlab格式方法
- 请问大虾using namespace std;是什么意思????
- 用Wininet如何遍历一个HTTP服务的某个虚拟目录?
ApplyBuyDlg.cpp
e:\microsoft visual studio\myprojects\My\Myview.h(21) : error C2143: syntax error : missing ';' before '*'
e:\microsoft visual studio\myprojects\My\Myview.h(21) : error C2501: 'CMyDoc' : missing storage-class or type specifiers
e:\microsoft visual studio\myprojects\My\Myview.h(21) : error C2501: 'GetDocument' : missing storage-class or type specifiers
Error executing cl.exe.说程序中的
CJACDoc *GetDocument();
这里出错,这里完全没有我写的代码阿!
#include "MyView.h"