- 浏览: 14518 次
最新评论
文章列表
今天周四 晚上要值班!
转载于:https://my.oschina.net/Thekillersohot/blog/692998
程序执行需要读取到安全敏感项必需在androidmanifest.xml中声明相关权限请求, 完整列表如下:android.permission.ACCESS_CHECKIN_PROPERTIES允许读写访问”properties”表在checkin数据库中,改值可以修改上传 ...
输入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 = gcc-E的gcc-E删掉
linux apxs -c -i -a mod_case_filter.c libapr-1.lib libaprutil-1.lib libapriconv- ...
// 显示消息对话框 nRes = MessageBox(_T("您确定要跳转网站?"), _T("提示"), MB_OKCANCEL | MB_ICONQUESTION); // 判断消息对话框返回值。如果为IDCANCEL就return,否则继续向下执行 if (IDCANCEL == nRes) return;
...
BOOL DeleteFolder(LPCTSTR lpszPath) { SHFILEOPSTRUCT FileOp; ZeroMemory((void*)&FileOp,sizeof(SHFILEOPSTRUCT));
FileOp.fFlags = FOF_NOCONFIRMATION; FileOp.hNameMappings = NULL; FileOp.hwnd = NULL; FileOp.lpszProgressTitle = NULL; FileOp.pFrom ...
在conf下 新建一个 文件 格式 : 域名.conf 例如:www.test.com.conf
文件里配置:
server{ listen 80; server_name www.test.com;
location / { proxy_pass http://www.81145.com/; }}
然后在 :Nginx.conf 配置文件里 http块里添加:
include www.test.com.conf;
重启Nginx服务器就可以实现。 ...
前言:面向对象编程是现如今编程的大环境,所以再次回顾面向对象的知识是非常有必要的。
一:类与对象
1:软件系统
输入{用户界面} 运算{业务逻辑}
存储{数据库} 输 ...
<?xml version="1.0" encoding="UTF-8"?>
<!-- TabHost组件id值不可变-->
<TabHost xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@android:id/tabhost"
android:layout_height ...
ShellExecute(NULL, _T("open"), _T("..\\PassthruDriver\\DrvInstall.exe"),NULL, NULL, SW_HIDE); //隐藏驱动安装程序
转载于:https://my.oschina.net/Thekillersohot/blog/699585
import urllib.request,io,os,sysreq=urllib.request.Request("http://echophp.sinaapp.com/uncategorized/194.html")f=urllib.request.urlopen(req)s=f.read()s=s.decode('utf-8','ignore')mdir=sys.path[0]+'/'file=open(mdir+'html.txt','a',1,'gbk')fil ...
在初始化的时候加入以下函数
//去掉标题栏 ModifyStyle(WS_CAPTION, NULL, SWP_DRAWFRAME );
转载于:https://my.oschina.net/Thekillersohot/blog/699583
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 file. */ fseek( fp, 0L, SEEK_END );
/* Get the end position. */ size_of_file = ftell( f ...
string UTF8ToGBK(const std::string& strUTF8) //GBKתUTF-8
{
int len = MultiByteToWideChar(CP_UTF8, 0, strUTF8.c_str(), -1, NULL, 0);
unsigned short * wszGBK = new unsigned short[len + 1];
memset(wszGBK, 0, len * 2 ...
case WM_RBUTTONDOWN://右击托盘,显示菜单 { CMenu menu,*pSubMenu; //后面要用的CMenu对象 CPoint point; menu.LoadMenu(IDR_MENU2); //装载自定义的右键菜单 pSubMenu = menu.GetSubMenu(0); //获取第一个弹出菜单 GetCursorPos(&point); //获取当前光标位置SetForegroundWindow(); pSubMenu->TrackPopu ...
1.编写动态链接库文件 dll和lib文件
例子:
在新建VS工程时选择DLL 空项目
----------hello.h--------
#include <stdio.h> #pragma once;
#ifdef DLL_IMPLEMENT
#define DLL_API __declspec(dllexport)
#else
#define DLL_API __declspec(dllimport)
#endif
namespace dayinga { ...