多线程的一个问题
//这里是头文件的定义AllThread.h
typedef struct ballinfo{
HWND hWnd;
long speed;
long xpos;
long ypos;
long ballr;
CRect rect;
}BALLINFO, * LPINFO;
UINT DemoProgressBar(LPVOID wParam);
UINT DemoBallMove(LPVOID wParam);
#include "stdafx.h"
#include "AllThread.h"
/////
.............
CProgressCtrl *m_ProgressBar;
m_ProgressBar=(CProgressCtrl *)wParam;//强制类型转化成功
....................
LPVOID tempball;
tempball=(BALLINFO *)wParam;//就是这个地方,不知道为什么强制转化失败了
//在后面用到tempBall变量的时候总提示
F:\MulThread\AllThread.cpp(28) : error C2227: left of '->xpos' must point to class/struct/union
。。。。。。。。。