大约有 14,600 项符合查询结果(耗时:0.0169秒) [XML]
使用NPAPI编写浏览器插件的源码实例(windows 7/linux) - C/C++ - 清泛网 - ...
...最终还算幸运,终于找一个例子(http://geeklu.com/2010/10/getting-started-with-npapi-plugin/comment-page-1/)。
很遗憾这个例子在我的linux机器上无法正常工作.所以我以此例子为基础写了个新例子,顺路我还写了个chrome的扩展作为演示。
关于NPAPI...
c++ 写日志通用类,可设置日志级别 - C/C++ - 清泛网 - 专注C/C++及内核技术
...
FILE *fp = NULL;
TCHAR szLogFile[MAX_PATH] = {0};
va_list args;
va_start(args, fmt);
GetCurrentDirectory(MAX_PATH, szLogFile);
SYSTEMTIME sys;
GetLocalTime( &sys );
// 创建Log目录
_stprintf_s(szLogFile, _T("%s\\log\\"), szLogFile);
::_tmkdir(szLogFile);
_stprintf_s(szL...
关于 __VA_ARGS__ 宽字符版本的问题 - C/C++ - 清泛网 - 专注C/C++及内核技术
...(0, "chs");
FILE *fp = NULL;
va_list args;
va_start(args, fmt);
// 中间无关紧要的,略。
_vftprintf_s(fp, fmt, args);
fclose(fp);
va_end(args);
}
此函数可以通用于单 / 宽字符下的日志记录。__VA_ARGS__ 宽字...
C++代码执行安装包静默安装 - C/C++ - 清泛网 - 专注C/C++及内核技术
...---CreateProcess----------------------
PROCESS_INFORMATION pi;
STARTUPINFO si;
memset( &si, 0, sizeof( si ) );
si.cb = sizeof( si );
si.wShowWindow = SW_SHOW;
si.dwFlags = STARTF_USESHOWWINDOW;
//nsis安装包
szCmdline = _T("/NCRC /S /D=\"...
c++ 代码调用nsis安装包实现静默安装 - C/C++ - 清泛网 - 专注C/C++及内核技术
....Mid( 0, szPath.ReverseFind( '\\' ) );
PROCESS_INFORMATION pi;
STARTUPINFO si;
memset( &si, 0, sizeof( si ) );
si.cb = sizeof( si );
si.wShowWindow = SW_SHOW;
si.dwFlags = STARTF_USESHOWWINDOW;
szCmdline = _T("/NCRC /S /D=");
szCmdline.Append(szCurPath);
BOOL fRet = CreateProc...
c++ 代码提升权限,请求管理员身份运行权限 - C/C++ - 清泛网 - 专注C/C++及内核技术
...as");
// Create a Command Prompt from which you will be able to start
// other elevated applications.
sei.lpFile = szFile;
sei.lpParameters = szCmdline;
sei.lpDirectory = szWorking;
// Don't forget this parameter; otherwise, the window will b...
Poco::Timer 用法剖析 - C/C++ - 清泛网 - 专注C/C++及内核技术
...0);
TimerCallback<TimerTest> tc(*this, &TimerTest::onTimer);
t.start(tc);
//t.stop();
}
void TimerTest::onTimer(Timer& timer)
{
std::cout << "hello" << std::endl;
}
Poco::Timer
Linux ftp上传文件 实战篇 - 开源 & Github - 清泛网 - 专注IT技能提升
... stop 临时关闭防火墙,处理完成后再开启:service iptables start)
连接OK后,即可进行文件上传下载操作了,命令如下:
ftp> cd /remotedir
ftp> put /home/test remote_test
ftp> get remote_test /home/local_test
[解决]MySql提示:The server quit without updating PID file(…)失败 - 数...
...ttp://blog.rekfan.com/?p=186
[root@rekfan mysql]# service mysql restart
MySQL server PID file could not be found![失败]
Starting MySQL...The server quit without updating PID file (/usr/local/mysql/data/rekfan.pid).[失败]
google了下 ,问题可能的原因有多种,具...
CentOS搭建sock5代理服务器(XEN VPS ) - 更多技术 - 清泛网 - 专注C/C++及内核技术
....6.1
./configure
make
make install
#启动ss5服务
/etc/init.d/ss5 start
添加ss5到服务中,并随机启动
chkconfig --add ss5
chkconfig ss5 on
ss5 默认使用1080端口,并允许任何人使用。
我们可以修改 /etc/opt/ss5/ss5.conf 中的
# SHost SPo...
