上一页 1 ··· 5 6 7 8 9 10 11 12 13 14 下一页
摘要: function SetSubTable() { var obj = jQuery.parseJSON($("#SubJsonStrValue").val()); window.ALLPARAMTERS = obj; var row_str = ""; var span_num = 1 for (var i = 0; i < obj.length; i++) { if (obj[i].Par... 阅读全文
posted @ 2010-10-22 12:50 liulun 阅读(1926) 评论(0) 推荐(1)
摘要: #include <afxwin.h>//必须加载此文件,该文件中定义了所有MFC相关的类#include "resource.h"class MyFrame:public CFrameWnd{private: CMenu MainMenu,*SysMenu,*PopMenu,*SubMenu; COLORREF color;public: MyFrame() { Create(NU... 阅读全文
posted @ 2010-07-04 20:14 liulun 阅读(751) 评论(0) 推荐(0)
摘要: #include <afxwin.h>#include "resource.h"#include <afxtempl.h> //定义模板类的头文件class MyDocument : public CDocument{public: CArray<CPoint,CPoint &> pArray;//<保存的数据类型,读取保存数据类型的返回值>... 阅读全文
posted @ 2010-06-29 21:12 liulun 阅读(601) 评论(0) 推荐(0)
摘要: #include <afxwin.h>#include "resource.h"class MyDocument : public CDocument{ DECLARE_DYNCREATE(MyDocument)//声明run-time类};IMPLEMENT_DYNCREATE(MyDocument,CDocument)//声明MyDocument为run-time类class My... 阅读全文
posted @ 2010-06-28 21:56 liulun 阅读(324) 评论(0) 推荐(0)
摘要: #include <afxwin.h>#include "resource.h"class MyFrame:public CFrameWnd{private: CMenu *FMenu;public: MyFrame() { Create(NULL,"Hello MFC");//建立窗口 FMenu = new CMenu;//产生菜单 FMenu->LoadMenu(ID... 阅读全文
posted @ 2010-06-28 21:32 liulun 阅读(447) 评论(5) 推荐(0)
摘要: #include <afxwin.h>//编写窗口程序时,必须加载此文件,该文件中定义了所有的MFC类class MyApp:public CWinApp//以继承的方式借用MFC的类{public:BOOL InitInstance()//程序入口点{CFrameWnd *Frame = new CFrameWnd();m_pMainWnd = Frame;//窗口框架对象Frame... 阅读全文
posted @ 2010-06-28 21:16 liulun 阅读(488) 评论(0) 推荐(0)
摘要: DEMO的下载地址:http://files.cnblogs.com/liulun/flashUploader.rar参考文章所在地址:http://blog.l4cd.net/post-old-102.htmlhttp://www.kingnare.com/auzn/archives/548本来想做SL版的断点续传,但是客户觉得SL客户端占有率太低就选择采用FLASH版的了FLASH AS3.0... 阅读全文
posted @ 2010-06-16 15:15 liulun 阅读(2557) 评论(0) 推荐(0)
摘要: 需求:用户登录后隔一段固定的时间触发某一特定事件详细描述如下web项目数据库有一个用户表当用户登录后记下当前时间从当前时间计时,一天后执行一个固定的方法(或触发某个事件)-------------------------------------------------------------------------------------------------------------------... 阅读全文
posted @ 2010-03-21 10:05 liulun 阅读(387) 评论(0) 推荐(0)
摘要: 1:这个做法不太常用2:这个方法要传递两个参数,打算用扩展方法解决这个问题,但是扩展方法又不能用在匿名类型上,有点郁闷using System;using System.Collections.Generic;using System.Linq;using System.Text;namespace ConsoleApplication8{ class Program { static void Main(string[] args) { Func<string, string, string> getAllName = deleg... 阅读全文
posted @ 2010-03-19 09:06 liulun 阅读(496) 评论(1) 推荐(0)
摘要: 写这玩意主要是为了锻炼一下英文水平第一篇翻译的比较详细一个是看看这个书翻译容易不容易第二个是看看自己有没有这个水平接下来的翻译可能就只检重点的翻译了Asp.net mvc 实战Jeffrey PalermoBen ScheirmanJimmy BogardAsp.net mvc framework入门这一章主要包括:1asp.net mvc框架的系统要求2运行第一个项目3“HellowWorld”示例4强类型视图5路由基础在微软平台上开发web项目的时间越长你越能体会到如下的痛苦九十年代开发人员用服务器上的可执行程序创建动态网站这些程序(CGI在当时是一个非常普遍的技术)接收web请求并负责创 阅读全文
posted @ 2010-03-17 17:58 liulun 阅读(824) 评论(0) 推荐(0)
摘要: 发送数据:接收数据: 阅读全文
posted @ 2010-03-16 10:47 liulun 阅读(3324) 评论(1) 推荐(1)
摘要: 客户端代码服务端代码 阅读全文
posted @ 2010-03-15 17:33 liulun 阅读(1616) 评论(0) 推荐(0)
摘要: 服务端客户端 阅读全文
posted @ 2010-03-11 09:53 liulun 阅读(4089) 评论(0) 推荐(3)
摘要: using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Net;using System.IO;using System.Text.RegularExpressions;namespace allen{ class Program { /// <summary> /// 根据网址取得HTML代码 /// </summary> /// <param name="url"></param> ... 阅读全文
posted @ 2010-03-06 14:31 liulun 阅读(1254) 评论(5) 推荐(2)
摘要: 新建一个项目->顺序工作流库设计面板拖放ifElse活动点右键,添加三个分支每个分支的条件设置为声明性规则条件并设置他们的名称和表达式代码如下:在解决方案中创建windows form项目设计一个简单的计算器的界面做代码如下 阅读全文
posted @ 2010-02-28 14:00 liulun 阅读(726) 评论(0) 推荐(0)
摘要: C#->控制台顺序工作流->拖放code->双击生成事件处理程序 阅读全文
posted @ 2010-02-27 23:14 liulun 阅读(1151) 评论(0) 推荐(0)
摘要: using System;using System.Collections.Generic;using System.Data;using System.Linq;using System.Text;using System.Reflection;namespace ConsoleApplication6{ /// <summary> /// AttributeTargets.Clas... 阅读全文
posted @ 2010-02-25 11:50 liulun 阅读(1739) 评论(2) 推荐(3)
摘要: #include <windows.h>#include "resource.h"#include <string>LRESULT CALLBACK MainWndProc(HWND,UINT,WPARAM,LPARAM);//窗口函数的函数原型int APIENTRY WinMain( //APIENTRY是__stdcall的宏定义 HINSTANCE hIn... 阅读全文
posted @ 2010-02-23 16:18 liulun 阅读(1476) 评论(0) 推荐(0)
摘要: resource.h的代码为 阅读全文
posted @ 2010-02-23 15:00 liulun 阅读(738) 评论(0) 推荐(0)
摘要: #include <windows.h>LRESULT CALLBACK MainWndProc(HWND,UINT,WPARAM,LPARAM);//窗口函数的函数原型int APIENTRY WinMain( //APIENTRY是__stdcall的宏定义 HINSTANCE hInstance, //本模块的实例句柄 HINSTANCE hPrevInsta... 阅读全文
posted @ 2010-02-23 13:52 liulun 阅读(575) 评论(0) 推荐(0)
摘要: using System;using System.Collections.Generic;using System.Linq;using System.Text;namespace ConsoleApplication1{ class Program { static void Main(string[] args) { int? a; a = null;//此时输出3 //a = 6;//此时... 阅读全文
posted @ 2010-02-19 19:59 liulun 阅读(2101) 评论(0) 推荐(0)
摘要: #include <windows.h>#include <iostream>#include <process.h>using namespace std;int g_nCount1 = 0;int g_nCount2 = 0;CRITICAL_SECTION g_cs;//临界区BOOL g_bContinue = TRUE;//线程结束标志UINT WIN... 阅读全文
posted @ 2010-02-09 12:44 liulun 阅读(597) 评论(0) 推荐(0)
摘要: #include <windows.h>#include <iostream>using namespace std;DWORD WINAPI ThreadIdle(LPVOID lpParam){ int i=0; while(i++<10) { cout<<"Idel thread is running"<<endl; } return ... 阅读全文
posted @ 2010-02-09 09:33 liulun 阅读(1027) 评论(0) 推荐(1)
摘要: DLL项目的头文件 #ifdef KEYHOOKLIB_EXPORT //此宏将在CPP文件中定义#define KEYHOOKLIB_API __declspec(dllexport)#else#define KEYHOOKLIB_API __declspec(dllimport)#endif#define HM_KEY WM_USER+101BOOL KEYHOOKLIB_API WINAPI... 阅读全文
posted @ 2010-02-08 17:49 liulun 阅读(710) 评论(0) 推荐(0)
摘要: #include <windows.h>#include <iostream>#include "12dll.h"using namespace std;#pragma comment(lib,"12Dll")//要链接到什么库文件void main(){ //CMy12Dll a; cout<<fnMy12Dll()<<endl; char b; ... 阅读全文
posted @ 2010-02-07 19:47 liulun 阅读(857) 评论(0) 推荐(0)
摘要: #include <windows.h>#include <iostream>using namespace std;int main(){ //HWND hWnd = ::FindWindow("Notepad",NULL); HWND hWnd = ::FindWindow(NULL,"a.txt - 记事本"); if(hWnd != NULL) { ::SendM... 阅读全文
posted @ 2010-02-06 12:21 liulun 阅读(435) 评论(0) 推荐(0)
摘要: #include <windows.h>#include <iostream>using namespace std;DWORD WINAPI ThreadProc(LPVOID lpParam){ int i = 0; while(i<20) { cout<<i<<endl; i++; } return 0;}int main(){ HA... 阅读全文
posted @ 2010-02-06 12:09 liulun 阅读(324) 评论(0) 推荐(0)
摘要: #include <windows.h>#include <iostream>using namespace std;HANDLE g_hProcess;BOOL ChangeMemory(DWORD dwValue){ const DWORD dwOneGB = 1024*1024*1024;//1GB const DWORD dwOnePage = 4*1024;//4... 阅读全文
posted @ 2010-02-04 21:48 liulun 阅读(874) 评论(0) 推荐(0)
摘要: #include //系统会自动连接到指定的库文件lib#include //std io 标准输入输出接口#include using namespace std;int main(){ char szCommandLine[] = "cmd"; STARTUPINFO si = {sizeof(si)};// PROCESS_INFORMATION pi; si.dwFlags = STA... 阅读全文
posted @ 2010-02-04 18:00 liulun 阅读(745) 评论(0) 推荐(0)
摘要: #include <windows.h>//系统会自动连接到指定的库文件lib#include <tlhelp32.h>//声明快照函数的头文件#include <stdio.h>//std io 标准输入输出接口#include <iostream>using namespace std;int main(){ PROCESSENTRY32 p... 阅读全文
posted @ 2010-02-04 17:12 liulun 阅读(2395) 评论(0) 推荐(1)
上一页 1 ··· 5 6 7 8 9 10 11 12 13 14 下一页