NPAPI和PPAPI开发
admin | chrome | 2016-02-17
			
				            	http://blog.csdn.net/lee353086/article/details/49302917
NPAPI和PPAPI开发
Author: kagula
Revison: 1
Last modify date:2015-10-20
环境:
[1]Visual Studio 2010 SP1
Visaul Stuio  2013 Update4
[2]Python2.7
[3]Firefox 41.0.1
[4]IE 11
[5]Google chrome 45.0.2454.101
[6]Opera 32.0
[7]360浏览器 7.1.1.808
[8]nacl sdk pepper39
[9]windows...            	[阅读全文]
            
            
		Vista/7 compile and XP/2000 execution issues with OpenProcess in C++
admin | win32 | 2015-12-14
			
				            	
		
		
			
			C++
			
			
Find the location of your #include <windows.h> directive and make it look like this:
#define _WIN32_WINNT _WIN32_WINNT_WINXP 
#include "targetver.h"
			
				
					
				
					1234
				
						Find the location of your #include <windows.h> directive and make it look like this: #de...            	[阅读全文]
            
            
		CreateProcess创建的子进程所获得的命令行参数
admin | win32 | 2015-11-25
			
				            	
		
		
			
			C++
			
			
用CreateProcess创建的子进程所获得的命令行参数有以下几种情况:
1.子进程中,WinMain函数的第三个参数lpCmdLine表示的命令行参数中除去应用程序路径、文件名以及与参数相隔的空格等字符串后的内容。比如
父进程:
CreateProcess(NULL, “c://test.exe -p“, NULL, NULL, FALSE, 0, NULL, NULL, &si, &pi);
子...            	[阅读全文]
            
            
		刷新桌面图标缓存
admin | Windows api | 2015-10-13
			
				            	
		
		
			
			C++
			
			
SHChangeNotify(SHCNE_ASSOCCHANGED, SHCNF_IDLIST, 0, 0 );
			
				
					
				
					1
				
						SHChangeNotify(SHCNE_ASSOCCHANGED, SHCNF_IDLIST, 0, 0 );
					
				
			
		
 
            	[阅读全文]
            
            
		UTF8 Unicode 互转
admin | C++ | 2015-09-23
			
				            	
		
		
			
			C++
			
			
#include <stdio.h>
#include <stdlib.h>
int UTF8ToUnicode(const char *pmbs, wchar_t *pwcs, int size)
{
    int cnt = 0;
    // 这里 size-- 是预先除去尾零所需位置
    if (pmbs != NULL && pwcs != NULL && size-- > 0) {
        while (*pmbs != 0 && size &g...            	[阅读全文]
            
            
		mysql 自动备份 批处理
admin | bat | 2015-09-21
			
				            	
		
		
			
			Shell
			
			
@echo off & setlocal ENABLEEXTENSIONS 
:: ---------- 配置项 ---------- 
:: 备份放置的路径,加 \ 
set BACKUP_PATH=D:\Backup\ 
:: 要备份的数据库名称,多个用空格分隔 
set DATABASES=database1 database2 database3 
:: MySQL 用户名 
set USERNAME=root 
:: MySQL 密码 
set PASSWORD=1...            	[阅读全文]
            
            
		刷新无效托盘图标
admin | win32 | 2015-08-24
			
				            	
		
		
			
			C++
			
			
#include <AFX.H>
#include <COMMCTRL.H>
#include <iostream.h>
int main()
{
HWND  hStatus=::FindWindow("Shell_TrayWnd",NULL);  //得到任务栏句柄
if  (hStatus==NULL)  
{  
cout<<"Get Shell_TrayWnd error!\n";  
return -1;  
}  
HWND  hNotify=FindWindowEx(hStatus,NULL,"...            	[阅读全文]
            
            
		(C++)UrlEncode的标准实现
admin | win32 | 2015-08-05
			
				            	
		
		
			
			C++
			
			
unsigned char ToHex(unsigned char x) 
{ 
    return  x > 9 ? x + 55 : x + 48; 
}
unsigned char FromHex(unsigned char x) 
{ 
    unsigned char y;
    if (x >= 'A' && x <= 'Z') y = x - 'A' + 10;
    else if (x >= 'a' && x <= 'z') y = x - 'a' + 10;
    else if...            	[阅读全文]
            
            
		Windows下编译OpenSSL最新版(openssl-1.0.2a)
admin | C++ | 2015-07-27
			
				            	如何在Windows下编译OpenSSL (VS2010使用VC10的cl编译器)
1、安装ActivePerl//初始化的时候,需要用到perl解释器
2、使用VS2010下的Visual Studio 2010 Command Prompt进入控制台模式(这个模式会自动设置各种环境变量)
3、解压缩openssl的包,进入openssl的目录
4、perl configure VC-WIN32
尽量在这个目录下执行该命令,否则找不到Configure文件,或...            	[阅读全文]
            
            
		一个宏命令,就可以程序崩溃时生成dump文件
admin | win32 | 2015-07-10
			
				            	
		
		
			
			C++
			
			
#pragma once
#include <windows.h>
#include < Dbghelp.h>
#include <iostream>  
#include <vector>
#include <tchar.h>
using namespace std; 
#pragma comment(lib, "Dbghelp.lib")
namespace NSDumpFile
{ 
	void CreateDumpFile(LPCWSTR lpstrDumpFilePathName, EX...            	[阅读全文]
            
            
		