04 2016 档案

摘要:BOOL DeleteFolder(LPCTSTR lpszPath) { SHFILEOPSTRUCT FileOp; ZeroMemory((void*)&FileOp,sizeof(SHFILEOPSTRUCT)); FileOp.fFlags = FOF_NOCONFIRMATION; Fi 阅读全文
posted @ 2016-04-07 10:38 hellohyi 阅读(730) 评论(0) 推荐(0) 编辑
摘要:long filesize( FILE *fp ) { long int save_pos; long size_of_file; /* Save the current position. */ save_pos = ftell( fp ); /* Jump to the end of the f 阅读全文
posted @ 2016-04-07 10:38 hellohyi 阅读(800) 评论(0) 推荐(0) 编辑
摘要:void WriteUpdateLog(const char* strOutputString, ...) { char strBuffer[256] = {0}; SYSTEMTIME curTime; CString strTime, strMsg; FILE *pFile = NULL; // 阅读全文
posted @ 2016-04-07 10:38 hellohyi 阅读(194) 评论(0) 推荐(0) 编辑
摘要:ShellExecute(NULL, _T("open"), _T("..\\PassthruDriver\\DrvInstall.exe"),NULL, NULL, SW_HIDE); //隐藏驱动安装程序 阅读全文
posted @ 2016-04-07 10:38 hellohyi 阅读(110) 评论(0) 推荐(0) 编辑
摘要:<?xml version="1.0" encoding="UTF-8"?> <!-- TabHost组件id值不可变--> <TabHost xmlns:android="http://schemas.android.com/apk/res/android" android:id="@androi 阅读全文
posted @ 2016-04-07 10:38 hellohyi 阅读(122) 评论(0) 推荐(0) 编辑
摘要:<embed wmode="transparent" src="http://chabudai.sakura.ne.jp/blogparts/honehoneclock/honehone_clock_tr.swf" quality="high" bgcolor="#ffffff" name="hon 阅读全文
posted @ 2016-04-07 10:38 hellohyi 阅读(330) 评论(0) 推荐(0) 编辑
摘要:响应窗体的 OnSetCursor 消息响应 鼠标移动到某空间时改变 形状 BOOL CQQBulkDlg::OnSetCursor(CWnd* pWnd, UINT nHitTest, UINT message) { // TODO: 在此添加消息处理程序代码和/或调用默认值 // TODO: 在 阅读全文
posted @ 2016-04-07 10:37 hellohyi 阅读(970) 评论(0) 推荐(0) 编辑
摘要:case WM_RBUTTONDOWN://右击托盘,显示菜单 { CMenu menu,*pSubMenu; //后面要用的CMenu对象 CPoint point; menu.LoadMenu(IDR_MENU2); //装载自定义的右键菜单 pSubMenu = menu.GetSubMenu 阅读全文
posted @ 2016-04-07 10:37 hellohyi 阅读(363) 评论(0) 推荐(0) 编辑
摘要:AfxGetApp()->m_pMainWnd->SendMessage(WM_CLOSE);//关闭主对话框 阅读全文
posted @ 2016-04-07 10:37 hellohyi 阅读(252) 评论(0) 推荐(0) 编辑
摘要:CWnd* h_q = AfxGetApp()->GetMainWnd(); //获取主窗口的句柄 阅读全文
posted @ 2016-04-07 10:37 hellohyi 阅读(546) 评论(0) 推荐(0) 编辑
摘要:ShellExecute(NULL,_T("open"),_T("Update.exe"),"Own",NULL,SW_HIDE); 阅读全文
posted @ 2016-04-07 10:37 hellohyi 阅读(210) 评论(0) 推荐(0) 编辑
摘要:rdsafbnr32uzayn.mysql.rds.aliyuncs.com r7fysfqs90r74cm6 rdsafbnr32uzayn.mysql.rds.aliyuncs.com r7fysfqs90r74cm6 阅读全文
posted @ 2016-04-07 10:35 hellohyi 阅读(120) 评论(0) 推荐(0) 编辑
摘要:\b 匹配字符串里hi 可以过滤him等词 例如\bhi\b。 . 匹配除了换行符以外的任意字符 * 指定他前面的字符可以使用任意次数 .* 表示匹配除了换行符之外的字符任意次 例如:\bhi\b.*\bLucy\b \d 匹配一位数字 例如:012-26602565 0\d\d-\d\d\d\d\ 阅读全文
posted @ 2016-04-07 10:34 hellohyi 阅读(145) 评论(0) 推荐(0) 编辑
摘要:SOCKET cClient; cClient=socket(AF_INET,SOCK_STREAM,0); //设置为非阻塞套接字 int iMode = 1; ioctlsocket(cClient, FIONBIO, (u_long FAR*)&iMode); //定义服务端 SOCKADDR 阅读全文
posted @ 2016-04-07 10:31 hellohyi 阅读(814) 评论(0) 推荐(0) 编辑
摘要:Select CONCAT( 'drop table ', table_name, ';' ) FROM information_schema.tables Where table_ name LIKE 'dede_%'; "dede"为要删除的表前缀,执行此SQL语句后会生成一串SQL语句,必须再 阅读全文
posted @ 2016-04-07 10:30 hellohyi 阅读(280) 评论(0) 推荐(0) 编辑
摘要:在子窗口OnClose() 消息里添加: GetParent()->DestroyWindow();//子窗口关闭 父窗口也同样关闭 在子窗口OnClose() 消息里添加: GetParent()->DestroyWindow();//子窗口关闭 父窗口也同样关闭 阅读全文
posted @ 2016-04-07 10:29 hellohyi 阅读(1077) 评论(0) 推荐(0) 编辑
摘要:1.编写动态链接库文件 dll和lib文件 例子: 在新建VS工程时选择DLL 空项目 hello.h #include <stdio.h> #pragma once; #ifdef DLL_IMPLEMENT #define DLL_API __declspec(dllexport) #else 阅读全文
posted @ 2016-04-07 10:28 hellohyi 阅读(336) 评论(0) 推荐(0) 编辑
摘要:1.权限处理 1.1 方法一 使用+-=的方法 1.1.1权限 rwx r 读 w 写 x 执行 1.1.2用户 ugoa u 所有者 g 用户组 o 其他人 a 表示以上所有 修改文件的方法 例: #chmod a=rwx [文件名] //a表示all 指所有人 #chmod g+w [文件名] 阅读全文
posted @ 2016-04-07 10:27 hellohyi 阅读(179) 评论(0) 推荐(0) 编辑
摘要:yum install vsftpd [root@localhost ftp]# /sbin/service vsftpd restart 查看FTP目录 # more /etc/passwd|grep ftp 添加用户 /usr/sbin/adduser -d /opt/ftp -g ftp -s 阅读全文
posted @ 2016-04-07 10:26 hellohyi 阅读(491) 评论(0) 推荐(0) 编辑
摘要:string UTF8ToGBK(const std::string& strUTF8) //GBKתUTF-8 { int len = MultiByteToWideChar(CP_UTF8, 0, strUTF8.c_str(), -1, NULL, 0); unsigned short * w 阅读全文
posted @ 2016-04-07 10:12 hellohyi 阅读(583) 评论(0) 推荐(0) 编辑
摘要://调用新的Activity Intent intent=new Intent(MainActivity.this,Main2Activity.class); startActivity(intent); //读写配置文件 SharedPreferences mSharedPreferences=g 阅读全文
posted @ 2016-04-07 10:10 hellohyi 阅读(168) 评论(0) 推荐(0) 编辑
摘要:键盘VK键值列表 /* Virtual Keys, Standard Set*/ VK_LBUTTON 0x01 VK_RBUTTON 0x02 VK_CANCEL 0x03 VK_MBUTTON 0x04 #define VK_LBUTTON 0x01 //鼠标左键 #define VK_RBUT 阅读全文
posted @ 2016-04-07 10:09 hellohyi 阅读(7204) 评论(0) 推荐(0) 编辑
摘要:CWnd* h_d2 = AfxGetApp()->GetMainWnd(); //获取主窗口的句柄 h_d2-> GetDlgItem(IDC_EDIT2)->GetWindowText(strSend); //IDC_APOETRY_EDIT为编辑框的ID 阅读全文
posted @ 2016-04-07 10:08 hellohyi 阅读(991) 评论(0) 推荐(0) 编辑
摘要:输入perl Configure.pl 安装目录...\apache2.2 “httpd.exe” 生成apxs命令, apache2.2下build目录中的config_vars.mk文件 将CC = gcc 的gcc改为cl.exe ,LD = g++的g++改为link.exe,CPP = g 阅读全文
posted @ 2016-04-07 10:08 hellohyi 阅读(179) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示