为什么这个窗口DRAW不出来??
#include <iostream>
#include <windows.h>
#include <cstring>
using namespace std;
int main()
{
RECT re = {10,10,100,100} ;
HDC hDC ;
char *pointer = \"Hellow boy!\" ;
int length = strlen(pointer) ;
int i = DrawText(hDC,pointer,length,&re,DT_CALCRECT) ;
cout << i ;
return 0 ;
}
看着MSDN写的,杂就是不出来呢?是HDC有问题么?