case WM_PAINT:
hdc = BeginPaint(hWnd, &ps);
RECT rt;
GetClientRect(hWnd,&rt);
DrawText(hdc, szHello, strlen(szHello), &rt, DT_CENTER);
EndPaint(hWnd, &ps);
break;
不对呀,以上代码在.c文件中就出错
e:\temp\clanguage\draw\draw.c(168) : error C2275: 'RECT' : illegal use of this type as an expression
c:\program files\microsoft visual studio\vc98\include\windef.h(292) : see declaration of 'RECT'
在.cpp文件中就能正确运行.
望高手指点.