GetDocument missing storage-class or type specifiers的解决方法
error C2143: syntax error : missing ';' before '*'
error C2501: 'CTest1Doc' : missing storage-class or type specifiers
error C2501: 'GetDocument' : missing storage-class or type specifiers
遇到这种莫名的错误,最可气了。
当我在childFrm中加入 #include "CMyView.h"便报的错
解决方法1是:
是在自己要使用的View类的.cpp文件中加入下面一句声明:
class CMyDoc;
解决方法2是:
是在自己要使用的View类的.cpp文件
#include "XXXDoc.h"
#include "XXXView.h"
#include "MainFrm.h"
GetDocument missing storage-class or type specifiers的解决方法相关推荐
- Struts Form中Date类型之“argument type mismatch”错误解决方法
现象: 当输入页面中含有日期如2008-01-01时,如果Form中对于的字段为Date类型,则会出现"argument type mismatch"错误. 原因: Struts的 ...
- NSArray element failed to match the Swift Array Element type错误的解决方法
在用swift调用yy_model生成的嵌套数组模型的时候回报错如下 错误的解决方法: Thread 1: Precondition failed: NSArray element failed to ...
- The method getJspApplicationContext(ServletContext) is undefined for the type JspFactory的解决方法...
最近又开始看jsp,那时候用的tomcat还是5的版本,我现在自己下的用的是tomcat6,在运行随书光盘的例子的时候,报了这样的错误: type Exception report message d ...
- Python 使用pyinstaller打包exe文件报错: TypeError: an integer is required (got type bytes) 的解决方法
python打包成exe文件首先需要安装pyinstaller库,再进入到目标文件目录,输入命令行打包py文件,但出现报错:TypeError: an integer is required (got ...
- No enclosing instance of type 错误的解决方法
今天做练习的时候碰到的小问题: No enclosing instance of type Test02 is accessible. Must qualify the allocation with ...
- maya中出现错误Cannot cast data of type string_to_string[]的解决方法
maya中出现错误Cannot cast data of type string_to_string[] 这个错误是在mel编程中,不小心把单一的字符串复制给了一个字符串数组,就像,你用一个1块钱硬币 ...
- javax.imageio.IIOException: Unsupported Image Type异常,解决方法
javax.imageio.IIOException: Unsupported Image Type异常 可以采用如下方案: public class ImagesUtils {public stat ...
- 图片压缩Unsupported Image Type异常,解决方法
问题 需要对上传的大图片,在存储原文件后,另对它进行压缩存储作为缩略图.部分jpg图片在压缩时报错,导致没有压缩直接保存.网站页面展示这些5M左右的图片,打开变慢,影响使用 javax.imageio ...
- 升级开发者工具后调试器Storage和AppData目录找不见解决方法
1.调试-打开调试目录-插件目录 2.将inspector文件夹删除,在重启一下微信开发者工具就好了
最新文章
- matplotlib 标签_为折线图添加数据标签的方法,附代码
- [android] Serializable 和 Parcelable 区别
- php随机数、时间、字符串函数,正则,数组函数
- mysql 阿里云 优化_MySQL性能优化速记
- 支付宝二面微服务、分布式架构?太真实了!
- 【Linux】基础每日一命之cutmvscp命令
- CSS 背景附着 background-attachment属性
- 压力测试实践一:JMeter + JProfiler 入门
- java对mysql进行查找替换_Java对MySQL数据库进行连接、查询和修改【转载】
- Debug调试工具使用
- 主流代码扫描静态分析工具
- 如何用Carbon Copy Cloner把macOS系统旧硬盘备份到新硬盘上?
- flyway 社区版本使用团队(企业级)特性ignore-migration-patterns使用
- [Luogu3554] Poi2013 Triumphal arch
- Firebird学习(02):数据库的中文参考资料
- CSS3 filter滤镜详解
- 通过 Ansible 来操作 Windows 服务器
- 如何实现微信和淘宝的扫码登录
- word2019设置背景色为护眼的绿色
- 自己是一滩烂泥,却恨铁不成钢