会员
周边
众包
新闻
博问
闪存
赞助商
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
吃喝玩乐
博客园
首页
新随笔
联系
管理
订阅
上一页
1
···
56
57
58
59
60
61
62
63
64
下一页
2010年8月9日
从GridView导出到Excel
摘要: private void toexcel(string title) { Response.Clear(); Response.Buffer = false; Response.Charset = "utf-8"; Response.AppendHeader("Content-Disposition", "attachment;filename=" + HttpUtility.UrlEncode(...
阅读全文
posted @ 2010-08-09 16:30 94cool
阅读(244)
评论(0)
推荐(0)
编辑
2010年8月4日
有趣的数字算法
摘要: 输入正整数 n , 按从大到小的顺序输出所有形如 abcde/fghij = n 的表达式,其中a ~ j为0 ~ 9的数字(不可重复)。2 <= n <=79. 样例输入: 62 样例输出: 79546/01283 = 62 94736/01528 = 62 方法:以62为例private bool isRepeat(string val) { bool result = true;...
阅读全文
posted @ 2010-08-04 15:29 94cool
阅读(200)
评论(0)
推荐(0)
编辑
2010年6月1日
通过密匙验证反盗链(以mp3为例)
摘要: 1:建立Handler.cs文件using System;using System.Data;using System.Configuration;using System.Web;using System.Web.Security;using System.Web.UI;using System.Web.UI.WebControls;using System.Web.UI.WebControls...
阅读全文
posted @ 2010-06-01 16:53 94cool
阅读(241)
评论(0)
推荐(0)
编辑
2010年5月26日
哈佛图书馆的二十条训言
摘要: 哈佛图书馆的二十条训言: 1.此刻打盹,你将做梦;而此刻学习,你将圆梦。 2.我荒废的今日,正是昨日殒身之人祈求的明日。 3.觉得为时已晚的时候,恰恰是最早的时候。 4.勿将今日之事拖到明日。 5.学习时的苦痛是暂时的,未学到的痛苦是终生的。 6.学习这件事,不是缺乏时间,而是缺乏努力。 7.幸福或许不排名次,但成功必排名次。 8.学习并不是人生的全部。但既然连人生的一部分R...
阅读全文
posted @ 2010-05-26 19:30 94cool
阅读(124)
评论(0)
推荐(0)
编辑
2010年4月30日
看SQL SERVER数据库当前连接数
摘要: select * from sysprocesses where dbid in (select dbid from sysdatabases where name='dbname')
阅读全文
posted @ 2010-04-30 17:03 94cool
阅读(208)
评论(0)
推荐(0)
编辑
激活另一个进程
摘要: [DllImport("user32.dll")] public static extern void SetForegroundWindow(IntPtr hwnd); [DllImport("user32.dll")] public static extern IntPtr FindWindow(String classname, String title); private void btn...
阅读全文
posted @ 2010-04-30 15:31 94cool
阅读(207)
评论(0)
推荐(0)
编辑
Microsoft Visual C++ 程序的部署
摘要: Microsoft Visual C++ 程序的部署由Microsoft Visual C++编译的程序动态链接到C运行时(/MD 或 /MDd),它必须捆绑C运行DLL的一份拷贝(通常被叫作MSVCRT.DLL 或 MSVCRxx.DLL,其中xx代表Visual C++的版本)。1. 用Microsoft Visual C++ 6.0编译的程序,或者发布在Windows 2000/NT/ME/...
阅读全文
posted @ 2010-04-30 09:25 94cool
阅读(802)
评论(0)
推荐(0)
编辑
找不到附属汇编 Microsoft.VC80.MFC解决办法
摘要: 错误:“找不到附属汇编 Microsoft.VC80.MFC,上一个错误是 参照的汇编没有安装在系统上”解决方法:下面是下载地址:Microsoft Visual C++ 2005 SP1 下载:http://download.microsoft.com/download/7/9/8/798325b7-8993-4ef9-9148-8db9ff4187fc/vcredist...
阅读全文
posted @ 2010-04-30 08:20 94cool
阅读(1324)
评论(1)
推荐(0)
编辑
2010年4月27日
使用ExitProcess()结束本进程、TerminateProcess 结束进程
摘要: 进程只是提供了一段地址空间和内核对象,其运行时通过在其地址空间内的主线程来体现的。当主线程的进入点函数返回时,进程也就随之结束。这种进程的终止方式是进程的正常退出,进程中的所有线程资源都能够得到正确的清除。除了这种进程的正常退出方式外,有时还需要在程序中通过代码来强制结束本进程或其他进程的运行。ExitProcess()函数的原型为:void ExitProcess(UINT uExitCode)...
阅读全文
posted @ 2010-04-27 14:09 94cool
阅读(1160)
评论(0)
推荐(0)
编辑
2010年4月23日
FLEX中无法直接addChild()
摘要: private function initVol():void{vol = new Sprite();vol.buttonMode = true;vol.addChild(new pointClass());vol.x = 90;vol.y = 15;vol.addEventListener(MouseEvent.MOUSE_DOWN,down);addChild(vol);}上面无法显示添加的内...
阅读全文
posted @ 2010-04-23 15:20 94cool
阅读(909)
评论(0)
推荐(0)
编辑
上一页
1
···
56
57
58
59
60
61
62
63
64
下一页
公告