阅读:2837回复:0
关于线程的问题!请高手帮忙!
刚接触多线程编程,不是很懂,看到一个例子
//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 但是编译后还是会出现下面的错误,这是什么问题呢?请教! |
|