上一页 1 ··· 5 6 7 8 9 10 11 12 13 下一页
摘要: #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 阅读(471) 评论(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 阅读(2495) 评论(0) 推荐(0) 编辑
摘要: 需求:用户登录后隔一段固定的时间触发某一特定事件详细描述如下web项目数据库有一个用户表当用户登录后记下当前时间从当前时间计时,一天后执行一个固定的方法(或触发某个事件)-------------------------------------------------------------------------------------------------------------------... 阅读全文
posted @ 2010-03-21 10:05 liulun 阅读(365) 评论(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 阅读(472) 评论(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 阅读(794) 评论(0) 推荐(0) 编辑
摘要: 发送数据:接收数据: 阅读全文
posted @ 2010-03-16 10:47 liulun 阅读(3246) 评论(1) 推荐(1) 编辑
摘要: 客户端代码服务端代码 阅读全文
posted @ 2010-03-15 17:33 liulun 阅读(1577) 评论(0) 推荐(0) 编辑
摘要: 服务端客户端 阅读全文
posted @ 2010-03-11 09:53 liulun 阅读(4015) 评论(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 阅读(1190) 评论(5) 推荐(2) 编辑
摘要: 新建一个项目->顺序工作流库设计面板拖放ifElse活动点右键,添加三个分支每个分支的条件设置为声明性规则条件并设置他们的名称和表达式代码如下:在解决方案中创建windows form项目设计一个简单的计算器的界面做代码如下 阅读全文
posted @ 2010-02-28 14:00 liulun 阅读(701) 评论(0) 推荐(0) 编辑
摘要: C#->控制台顺序工作流->拖放code->双击生成事件处理程序 阅读全文
posted @ 2010-02-27 23:14 liulun 阅读(1111) 评论(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 阅读(1711) 评论(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 阅读(1425) 评论(0) 推荐(0) 编辑
摘要: resource.h的代码为 阅读全文
posted @ 2010-02-23 15:00 liulun 阅读(698) 评论(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 阅读(548) 评论(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 阅读(2064) 评论(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 阅读(576) 评论(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 阅读(992) 评论(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 阅读(669) 评论(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 阅读(799) 评论(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 阅读(404) 评论(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 阅读(302) 评论(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 阅读(831) 评论(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 阅读(697) 评论(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 阅读(2324) 评论(0) 推荐(1) 编辑
摘要: #include //系统会自动连接到指定的库文件lib#include #include //std io 标准输入输出接口#include using namespace std;int main(){ char szCommandLine[] = "cmd"; STARTUPINFO si = {sizeof(si)};// PROCESS_INFORMATION pi; si.dwFl... 阅读全文
posted @ 2010-02-04 14:59 liulun 阅读(406) 评论(0) 推荐(0) 编辑
摘要: 使用vs.net2008写C程序可以创建C++项目选择Win32 控制台应用程序,在应用程序窗口选择空项目复选框,然后在建好解决方案中添加C++ 文件(.cpp),把文件名写成.c扩展名的。创建完毕后,右击.c文件,选择属性->高级->编译为C代码(/TC)即可。 阅读全文
posted @ 2010-02-04 14:31 liulun 阅读(492) 评论(2) 推荐(1) 编辑
摘要: rsrc.rc文件代码Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--#include <resource.h>#define IDC_EDIT 3000 #define IDC_BUTTON 3001 #define IDC_EXIT 3... 阅读全文
posted @ 2010-01-30 20:28 liulun 阅读(543) 评论(0) 推荐(0) 编辑
摘要: 1:div srcsrc为8位时:ax/src = al余数放在AH中SRC位16位时:DX:AX/SRC = AX,余数放在DX中SRC为32位时:EDX:EAX/SRC = EAX,余数放在EDX中2:IDIV带符号的除法A/B的表示如下:mov ax,acwd;把ax扩展为dx:axidiv b 阅读全文
posted @ 2010-01-27 21:13 liulun 阅读(4396) 评论(0) 推荐(0) 编辑
摘要: 1:MUL SRC无符号数的乘法SRC是一个乘数,不能是立即数当SRC为8位时:AX<----AL*SRC当SRC为16位时:DX:AX<-----AX*SRC;DX;存放高十六位当SRC为32位时:EDX:EAX<------EDX*SRC;EDX存放高32位2:IMUL SRC有符号数乘法,与MUL SRC相同3:IMUL DST,SRCDST<----DST*SRC;... 阅读全文
posted @ 2010-01-26 20:45 liulun 阅读(11710) 评论(0) 推荐(0) 编辑
上一页 1 ··· 5 6 7 8 9 10 11 12 13 下一页