zh822
驱动牛犊
驱动牛犊
  • 注册日期2007-06-04
  • 最后登录2009-07-17
  • 粉丝0
  • 关注0
  • 积分11分
  • 威望75点
  • 贡献值0点
  • 好评度13点
  • 原创分0分
  • 专家分0分
阅读:2837回复:0

关于线程的问题!请高手帮忙!

楼主#
更多 发布于:2007-11-03 18:03
刚接触多线程编程,不是很懂,看到一个例子
//xxxdlg.h
static   UINT   MyThread(LPVOID   pParam);
CWinThread*   pMyThread;

//xxxdlg.cpp
UINT   CXXXDlg::MyThread(LPVOID   pParam)
{
CXXXDlg   *pDlg   =   (CXXXDlg   *)pParam;

//这里添加计算过程

return   0;
}
按这种方法编译后,出现错误:
:   error   C2065:   'm_Time '   :   undeclared   identifier
:   error   C2228:   left   of   '.GetCurSel '   must   have   class/struct/union   type
:   error   C2065:   'ReadDataFromUsb '   :   undeclared   identifier
  :   error   C2228:   left   of   '.GetCurSel '   must   have   class/struct/union   type
  :   error   C2228:   left   of   '.GetCurSel '   must   have   class/struct/union   type
  :   error   C2228:   left   of   '.GetCurSel '   must   have   class/struct/union   type
  :   error   C2065:   'm_bian '   :   undeclared   identifier
  :   error   C2065:   'm_list1 '   :   undeclared   identifier
  :   error   C2228:   left   of   '.InsertString '   must   have   class/struct/union   type
  :   error   C2228:   left   of   '.RedrawWindow '   must   have   class/struct/union   type
:   error   C2065:   'm_list2 '   :   undeclared   identifier
:   error   C2228:   left   of   '.InsertString '   must   have   class/struct/union   type
:   error   C2228:   left   of   '.RedrawWindow '   must   have   class/struct/union   type
:   error   C2065:   'm_list3 '   :   undeclared   identifier
:   error   C2228:   left   of   '.InsertString '   must   have   class/struct/union   type
:   error   C2228:   left   of   '.RedrawWindow '   must   have   class/struct/union   type
:   error   C2660:   'SetTimer '   :   function   does   not   take   3   parameters
:   error   C2228:   left   of   '.GetCurSel '   must   have   class/struct/union   type
:   error   C2228:   left   of   '.GetCurSel '   must   have   class/struct/union   type
:   error   C2228:   left   of   '.GetCurSel '   must   have   class/struct/union   type
:   error   C2228:   left   of   '.InsertString '   must   have   class/struct/union   type
:   error   C2228:   left   of   '.RedrawWindow '   must   have   class/struct/union   type
:   error   C2228:   left   of   '.InsertString '   must   have   class/struct/union   type
:   error   C2228:   left   of   '.RedrawWindow '   must   have   class/struct/union   type
:   error   C2228:   left   of   '.InsertString '   must   have   class/struct/union   type
:   error   C2228:   left   of   '.RedrawWindow '   must   have   class/struct/union   type
:   error   C2660:   'SetTimer '   :   function   does   not   take   3   parameters

但是编译后还是会出现下面的错误,这是什么问题呢?请教!
游客

返回顶部