//
//获得坐标。
POINT mouse;
GetCursorPos(&mouse);
int x=(int)mouse.x ;
int y=(int)mouse.y ;
this->textBox1 ->Text =x.ToString() +","+y.ToString ();
//
//获得句柄。
HWND hWnd;
hWnd=WindowFromPoint(mouse);
this->textBox2 ->Text =hWnd;//代码出错。。。
请高手帮忙看下。。。。哪里错了怎么改??
……/*Form1.h(195) : error C2664: “void System::Windows::Forms::Control::Text::set(System::String ^)”: 不能将参数 1 从“HWND”转换为“System::String ^”
没有用户定义的转换运算符,或者
无法将非托管类型转换为托管类型*/
怎么强制转??给代码下。。。 我强制转的时候总是错误