zoukankan      html  css  js  c++  java
  • MFC中的一个错误

    如果在文档类中,直接调用CView类,编译器可能会产生这样的错误:

    f:项目工程vshbcompilehbcompilehbcompileview.h(16): error C2143: syntax error : missing ';' before '*'
    1>f:项目工程vshbcompilehbcompilehbcompileview.h(16): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
    1>f:项目工程vshbcompilehbcompilehbcompileview.h(16): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
    1>f:项目工程vshbcompilehbcompilehbcompileview.h(16): warning C4183: 'GetDocument': missing return type; assumed to be a member function returning 'int'

    解决方法:

    在CView类的头文件中,加入"class CXXDoc;"

  • 相关阅读:
    MongoDB 查询$关键字 $in $or $all
    MongoDB limit 选取 skip跳过 sort排序 方法
    POJ 1700
    POJ 1666
    POJ 1701
    POJ 1674
    POJ 1664
    POJ 1665
    POJ 1658
    POJ 1656
  • 原文地址:https://www.cnblogs.com/wang-can/p/3297513.html
Copyright © 2011-2022 走看看