急问 如何用MFC画椭圆运行后出现的fatal error C1083:Cannot open precompiled header file:'Debug/fang.pch':No such file or directoryError executing cl.exe.
来源:学生作业帮助网 编辑:作业帮 时间:2024/07/05 20:47:32
![急问 如何用MFC画椭圆运行后出现的fatal error C1083:Cannot open precompiled header file:'Debug/fang.pch':No such file or directoryError executing cl.exe.](/uploads/image/z/10770189-69-9.jpg?t=%E6%80%A5%E9%97%AE+%E5%A6%82%E4%BD%95%E7%94%A8MFC%E7%94%BB%E6%A4%AD%E5%9C%86%E8%BF%90%E8%A1%8C%E5%90%8E%E5%87%BA%E7%8E%B0%E7%9A%84fatal+error+C1083%3ACannot+open+precompiled+header+file%3A%27Debug%2Ffang.pch%27%3ANo+such+file+or+directoryError+executing+cl.exe.)
急问 如何用MFC画椭圆运行后出现的fatal error C1083:Cannot open precompiled header file:'Debug/fang.pch':No such file or directoryError executing cl.exe.
急问 如何用MFC画椭圆
运行后出现的
fatal error C1083:Cannot open precompiled header file:'Debug/fang.pch':No such file or directory
Error executing cl.exe.
急问 如何用MFC画椭圆运行后出现的fatal error C1083:Cannot open precompiled header file:'Debug/fang.pch':No such file or directoryError executing cl.exe.
1.新建工程:类型选MFC
2.在CxxxxView类中的OnDraw()函数中,加入下列代码
CRect rctClient;
GetClientRect(&rctClient);
pDC->SetMapMode(MM_LOMETRIC);//设置映象模式0.1mm
pDC->SetWindowOrg(1350,750);//设置窗口原点(即窗口的中心点)
pDC->SetViewportOrg(rctClient.right/2,rctClient.bottom/2);//设置视口原点
//画椭圆
pDC->Ellipse(111,111,2111,1111);
3.编译运行
4.成功后马上回来加分给我!