摘要:
在子窗口OnClose() 消息里添加: GetParent()->DestroyWindow();//子窗口关闭 父窗口也同样关闭 在子窗口OnClose() 消息里添加: GetParent()->DestroyWindow();//子窗口关闭 父窗口也同样关闭 阅读全文
摘要:
1.编写动态链接库文件 dll和lib文件 例子: 在新建VS工程时选择DLL 空项目 hello.h #include <stdio.h> #pragma once; #ifdef DLL_IMPLEMENT #define DLL_API __declspec(dllexport) #else 阅读全文
摘要:
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 [文件名] 阅读全文
摘要:
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 阅读全文
摘要:
string UTF8ToGBK(const std::string& strUTF8) //GBKתUTF-8 { int len = MultiByteToWideChar(CP_UTF8, 0, strUTF8.c_str(), -1, NULL, 0); unsigned short * w 阅读全文
摘要:
//调用新的Activity Intent intent=new Intent(MainActivity.this,Main2Activity.class); startActivity(intent); //读写配置文件 SharedPreferences mSharedPreferences=g 阅读全文
摘要:
键盘VK键值列表 /* Virtual Keys, Standard Set*/ VK_LBUTTON 0x01 VK_RBUTTON 0x02 VK_CANCEL 0x03 VK_MBUTTON 0x04 #define VK_LBUTTON 0x01 //鼠标左键 #define VK_RBUT 阅读全文
摘要:
CWnd* h_d2 = AfxGetApp()->GetMainWnd(); //获取主窗口的句柄 h_d2-> GetDlgItem(IDC_EDIT2)->GetWindowText(strSend); //IDC_APOETRY_EDIT为编辑框的ID 阅读全文
摘要:
输入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 阅读全文