首页 > 其他 > 详细

string 转 LPCWSTR

时间:2015-05-27 15:46:00      阅读:560      评论:0      收藏:0      [点我收藏+]

virtual BOOL TextOut(
   int x,
   int y,
   LPCTSTR lpszString,
   int nCount 
);
BOOL TextOut(
   int x,
   int y,
   const CString& str 
);

WM_LBUTTONDOWN: {
                             hdc = BeginPaint(hWnd, &ps);
                             UINT x = lParam;
                             UINT y = wParam;

                             //LPSTR info;
                             //sprintf(info, "(%d, %d)", x, y);
                             std::string s1("( " + x);
                             std::string s2(" , ");
                             std::string s3(y + " )");

                             std::string str = s1 + s2 + s3;

                            TextOut(hdc, 50, 50, (LPCWSTR)(str.c_str()), 6);
        }
        
        break;

string 转 LPCWSTR

原文:http://blog.csdn.net/haimian520/article/details/46047393

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!