
VC
gangliao
网吧里做网管。。
展开
-
VC里对画图设备的调用的几种方法!!
/*HDC hdc; hdc=::GetDC(this->m_hWnd); ::MoveToEx(hdc,pt1.x,pt1.y,NULL); ::LineTo(hdc,point.x,point.y); ::ReleaseDC(m_hWnd,hdc);*/ /*CDC *pcd=GetDC(); pcd->MoveTo(pt1); pcd->LineTo(point); ReleaseDC(p原创 2008-05-19 00:04:00 · 473 阅读 · 0 评论 -
CString和int
num1=::_ttoi((LPCTSTR)str1);//string to intstr3.Format(_T("%d"),num3);//int to string原创 2008-06-13 02:46:00 · 430 阅读 · 0 评论 -
得到文本框的值
int num1=0,num2,num3; TCHAR ch1[10],ch2[10],*pch3; CString str1,str2,str3; /*this->GetDlgItem(IDC_EDIT1)->GetWindowTextW(str1); this->GetDlgItem(IDC_EDIT2)->GetWin原创 2008-06-13 14:10:00 · 818 阅读 · 0 评论 -
string
num1=::_ttoi((LPCTSTR)str1);//string to intstr3.Format(_T("%d"),num3);//int to string使用 unicode 码的时候。要在字符或字符串 的前面 加上 L 。或者 写成 _T("this is a window.")形式的。strcpy 对应的 函数 为 wcscpy();CStringArray n原创 2008-06-13 02:48:00 · 439 阅读 · 0 评论