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的解决方法相关推荐

  1. Struts Form中Date类型之“argument type mismatch”错误解决方法

    现象: 当输入页面中含有日期如2008-01-01时,如果Form中对于的字段为Date类型,则会出现"argument type mismatch"错误. 原因: Struts的 ...

  2. NSArray element failed to match the Swift Array Element type错误的解决方法

    在用swift调用yy_model生成的嵌套数组模型的时候回报错如下 错误的解决方法: Thread 1: Precondition failed: NSArray element failed to ...

  3. The method getJspApplicationContext(ServletContext) is undefined for the type JspFactory的解决方法...

    最近又开始看jsp,那时候用的tomcat还是5的版本,我现在自己下的用的是tomcat6,在运行随书光盘的例子的时候,报了这样的错误: type Exception report message d ...

  4. Python 使用pyinstaller打包exe文件报错: TypeError: an integer is required (got type bytes) 的解决方法

    python打包成exe文件首先需要安装pyinstaller库,再进入到目标文件目录,输入命令行打包py文件,但出现报错:TypeError: an integer is required (got ...

  5. No enclosing instance of type 错误的解决方法

    今天做练习的时候碰到的小问题: No enclosing instance of type Test02 is accessible. Must qualify the allocation with ...

  6. maya中出现错误Cannot cast data of type string_to_string[]的解决方法

    maya中出现错误Cannot cast data of type string_to_string[] 这个错误是在mel编程中,不小心把单一的字符串复制给了一个字符串数组,就像,你用一个1块钱硬币 ...

  7. javax.imageio.IIOException: Unsupported Image Type异常,解决方法

    javax.imageio.IIOException: Unsupported Image Type异常 可以采用如下方案: public class ImagesUtils {public stat ...

  8. 图片压缩Unsupported Image Type异常,解决方法

    问题 需要对上传的大图片,在存储原文件后,另对它进行压缩存储作为缩略图.部分jpg图片在压缩时报错,导致没有压缩直接保存.网站页面展示这些5M左右的图片,打开变慢,影响使用 javax.imageio ...

  9. 升级开发者工具后调试器Storage和AppData目录找不见解决方法

    1.调试-打开调试目录-插件目录 2.将inspector文件夹删除,在重启一下微信开发者工具就好了

最新文章

  1. matplotlib 标签_为折线图添加数据标签的方法,附代码
  2. [android] Serializable 和 Parcelable 区别
  3. php随机数、时间、字符串函数,正则,数组函数
  4. mysql 阿里云 优化_MySQL性能优化速记
  5. 支付宝二面微服务、分布式架构?太真实了!
  6. 【Linux】基础每日一命之cutmvscp命令
  7. CSS 背景附着 background-attachment属性
  8. 压力测试实践一:JMeter + JProfiler 入门
  9. java对mysql进行查找替换_Java对MySQL数据库进行连接、查询和修改【转载】
  10. Debug调试工具使用
  11. 主流代码扫描静态分析工具
  12. 如何用Carbon Copy Cloner把macOS系统旧硬盘备份到新硬盘上?
  13. flyway 社区版本使用团队(企业级)特性ignore-migration-patterns使用
  14. [Luogu3554] Poi2013 Triumphal arch
  15. Firebird学习(02):数据库的中文参考资料
  16. CSS3 filter滤镜详解
  17. 通过 Ansible 来操作 Windows 服务器
  18. 如何实现微信和淘宝的扫码登录
  19. word2019设置背景色为护眼的绿色
  20. 自己是一滩烂泥,却恨铁不成钢

热门文章

  1. 疾风计划:离散数学丨第一章_命题逻辑
  2. Nginx---入门到放弃系列01
  3. Nginx高阶用法(三)
  4. 【Vsan数据恢复】Vsan分布式文件系统数据丢失的数据恢复
  5. 如何使用NC进行通信
  6. 【梦幻连连连】源码分析(完)-寻路消除算法
  7. STM32采用串口DMA方式实现发送数据
  8. Hexo博客新建文章
  9. 人与人之间的差别,在于思维模式的不同
  10. 零基础学习GitHub桌面版-8配置你的Hexo