摘要: 1 源码无私奉献 2 3 void CClipboardDlg::OnBnClickedButton1() 4 { 5 // TODO: 在此添加控件通知处理程序代码 6 //打开剪贴板 7 if(OpenClipboard()){ 8 CString str; 9 HANDLE hClip;10 char *pBuf;11 //清空剪贴板12 EmptyClipboard();13 GetDlgItemText(IDC_EDIT_SEND,str);14 //分配剪贴板数... 阅读全文
posted @ 2013-05-04 09:34 编程狂热者 阅读(229) 评论(0) 推荐(0) 编辑
摘要: 代码 不解释:View Code 1 // GetProcessList.cpp : 定义控制台应用程序的入口点。 2 // 3 4 #include "stdafx.h" 5 6 7 char* _w2s(const WCHAR* ws) 8 { 9 char *sz;10 size_t len;11 size_t converted;12 len = wcslen(ws)+1;13 converted=0;14 sz = (char*)malloc(len*sizeof(char));15 wcstombs_s(&co... 阅读全文
posted @ 2013-05-04 08:11 编程狂热者 阅读(224) 评论(0) 推荐(0) 编辑