自己看看头文件是不是包含,或者用class声明下

解决方案 »

  1.   

    d:\我的例子\book_chat\listeningsocket.h(23) : error C2629: unexpected 'class CListeningSocket ('
    类的定义或者
    d:\我的例子\book_chat\listeningsocket.h(23) : error C2238: unexpected token(s) preceding ';'
    d:\我的例子\book_chat\listeningsocket.h(28) : error C2143: syntax error : missing ';' before '*'
    语法错误
    d:\我的例子\book_chat\listeningsocket.h(28) : error C2501: 'CBook_chatDoc' : missing storage-class or type specifiers
    传递错误
    d:\我的例子\book_chat\listeningsocket.h(28) : error C2501: 'm_pDoc' : missing storage-class or type specifiers
    D:\我的例子\book_chat\ListeningSocket.cpp(17) : error C2065: 'CBook_chatDoc' : undeclared identifier
    D:\我的例子\book_chat\ListeningSocket.cpp(17) : error C2065: 'pDoc' : undeclared identifier
    D:\我的例子\book_chat\ListeningSocket.cpp(18) : error C2448: '<Unknown>' : function-style initializer appears 
      

  2.   

    'CBook_chatDoc'  这个类的声明是否在文件book_chat.h之中
    而且应在listeningSocket.h中include book_chat.h,
      

  3.   

    'CBook_chatDoc'  这个类的声明是否在文件book_chat.h之中
    而且应在listeningSocket.h中include book_chat.h,