上一页 1 ··· 8 9 10 11 12 13 14 15 下一页
摘要: 基础网络框架:c: libevent, lighttpd, nginx.C++: ACE, boost aio, POCO.IOCPJava: MINA, Grizzly, Tomcat, Resin.基于 IDL 的RPC:ICE, facebook thrift语言特定的动态RPC:Hessian(caucho的一个协议,其提供了基于HTTP的实现, 后来偶实现了一个基于TCP的版本).公司内部也有很多网络框架:无线的gnp, 架构部的MCP...不过公司内部的网络框架封装就比较简单一些,体现出的设计精髓不是很多,实用性,专一性强一点.示范分析MINA这里挑一个设计比较清晰,使用比较简易的 阅读全文
posted @ 2010-04-15 22:44 好好学习,天天进步 阅读(333) 评论(0) 推荐(0) 编辑
摘要: int nRes = (int)ShellExecute(NULL, _T("open"), openPath, NULL, NULL, SW_SHOWNORMAL); if(SE_ERR_NOASSOC == nRes) { CString strCmd; strCmd.Format(_T("RUNDLL32.EXE shell32, OpenAs_RunDLL %s"), openPath ); std::string dataCmd = CT2A( strCmd ); ::WinExec( dataCmd.c_str(... 阅读全文
posted @ 2010-04-07 10:02 好好学习,天天进步 阅读(415) 评论(0) 推荐(0) 编辑
摘要: #pragma comment(lib,"D:/program/lua-5.1.4/bin/lua51.lib")#include <stdio.h> extern "C" {#include "D:/program/lua-5.1.4/src/lua.h"#include "D:/program/lua-5.1.4/src/lualib.h"#include "D:/program/lua-5.1.4/src/lauxlib.h"}/* LUA接口声明*/lua_State* L; 阅读全文
posted @ 2010-02-02 14:13 好好学习,天天进步 阅读(407) 评论(0) 推荐(0) 编辑
摘要: 虽然我已经可以使用很多种编程语言进行工作,但我的工作常常会要求我快速掌握一门新的语言。我没有选择去阅读几百页的程序手册,而是快速浏览10到15页的教程(可以在Google中搜索),并把程序语言的语法参考说明印在小卡片上(在google里搜索language to learn+reference card就能找到)。首先,我会熟悉这种程序语言的编译器、编译选项、编辑器或集成开发环境的的快捷键和小技巧,写一个简单的“你好世界”程序,编译并运行它,再用调试器进行简单的调试,如设置断电、查看变量值、跳转到某一位置等。为了能够快速地掌握一种新的程序语言,我会做以下几个练习。注意,有些程序对初学者来说是很 阅读全文
posted @ 2009-10-21 14:28 好好学习,天天进步 阅读(314) 评论(0) 推荐(1) 编辑
摘要: ToolStripSplitButton 系统默认没有Checked效果,MS又说他们没时间改。只能自己处理一下了。重载OnPaint(PaintEventArgs e)if(Checked) Rectangle rect = ButtonBounds; using (Brush br = new LinearGradientBrush(rect, ProfessionalColors.ButtonCheckedGradientBegin, ProfessionalColors.ButtonCheckedGradientEnd, LinearGradientMode.Vertical)) { 阅读全文
posted @ 2009-09-03 11:43 好好学习,天天进步 阅读(502) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2009-08-12 13:25 好好学习,天天进步 阅读(171) 评论(0) 推荐(0) 编辑
摘要: WTL 中使用GDI+ 备忘#include <gdiplus.h>using namespace Gdiplus;#pragma comment(lib, "gdiplus.lib")_tWinMain{HRESULT hRes = ::CoInitialize(NULL);GdiplusStartupInput gdiplusStartupInput;ULONG_PTR gdiplusToken; GdiplusStartup(&gdiplusToken, &gdiplusStartupInput, NULL);。。。。。。// uninit 阅读全文
posted @ 2009-07-29 17:54 好好学习,天天进步 阅读(692) 评论(0) 推荐(0) 编辑
摘要: 自从VS2005以后,MS推荐用MenuStrip来代替原来的MainMenu,但是MenuStrip在设置菜单项Visible=false后,表面上看是好用的,实际上键盘上下移动菜单却会出现空白的现象。。。。。。 /// <summary> /// MenuStrip当设置Visible的时候,键盘上下移动菜单会出现空白的bug /// MS说: Please also note that this issue is purely visual, there's no functionality loss. /// 观众说:Fix these problems ins.. 阅读全文
posted @ 2009-07-29 13:02 好好学习,天天进步 阅读(642) 评论(0) 推荐(0) 编辑
摘要: cl /c HelloWorldDemo.cpp /I "C:/WTL80/include"rc /i "C:/WTL80/include" HelloWorldDemo.rclink /LIBPATH:XXX /SUBSYSTEM:WINDOWS /MACHINE:X86 HelloWorldDemo.res HelloWorldDemo.obj备忘 阅读全文
posted @ 2009-07-05 15:45 好好学习,天天进步 阅读(189) 评论(0) 推荐(0) 编辑
摘要: #include <iostream>using namespace std;#define N 100int c[N][N]={0};void print(char* x,int i,int j){ if (i < 0 || j < 0) { return; } if (c[i][j] == c[i][j-1]) { print(x,i,j-1); } else if (c[i][j] == c[i-1][j]) { print(x,i-1,j); } else if (c[i][j] == c[i-1][j-1] + 1) { print(x,i-1,j-1); c 阅读全文
posted @ 2009-05-05 16:42 好好学习,天天进步 阅读(455) 评论(0) 推荐(0) 编辑
上一页 1 ··· 8 9 10 11 12 13 14 15 下一页