11 2008 档案
SQL Server 2005创建登录名脚本
摘要:--数据库附加完毕,设置其dbo登录。禁止使用saCREATE LOGIN cn_xinfang_datawarehouse WITH PASSWORD = '123456', CHECK_POLICY=OFF;use cn_xinfang_datawarehouseexec sp_changedbowner 'cn_xinfang_datawarehouse'use master 阅读全文
posted @ 2008-11-20 10:52 袁晓平 阅读(232) 评论(0) 推荐(0)
Asp.net2.0里访问Web.config的Section的示例
摘要:发表时间:2007-4-26 11:28:00System.Configuration.Configuration config = System.Web.Configuration.WebConfigurationManager.OpenWebConfiguration("~"); System.Web.Configuration.PagesSection pagesSec... 阅读全文
posted @ 2008-11-13 17:03 袁晓平 阅读(201) 评论(0) 推荐(0)
javascript调用webservice实现base64加密
摘要:发表时间:2007-4-23 17:23:00 function Base64Service() { //Msxml2.XMLHTTP.3.0 //Msxml2.XMLHTTP.5.0 this.__xmlHttp = new ActiveXObject("Microsoft.XMLHTTP"); this.__xmlDoc = new ActiveXObject("M... 阅读全文
posted @ 2008-11-13 17:02 袁晓平 阅读(408) 评论(0) 推荐(0)
在Asp.net页面中隐藏上传文件的域
摘要:发表时间:2007-4-5 9:13:00 阅读全文
posted @ 2008-11-13 17:01 袁晓平 阅读(192) 评论(0) 推荐(0)
客户端显示分页信息
摘要:发表时间:2006-7-3 14:15:00 阅读全文
posted @ 2008-11-13 17:00 袁晓平 阅读(222) 评论(0) 推荐(0)
用javascript实现分级下拉菜单(可实现无限级)
摘要:发表时间:2006-6-25 16:57:00 New Document 机械电子五金电子====五金====五金====五金====五金====五金====五金====⊙●○①⊕◎Θ⊙¤ ㊣★☆♀◆◇◣◢◥▲▼△▽⊿◤ ◥ ▂ ▃ ▄ ▅ ▆ ▇ █ █ ■ ▓ 回 □ 〓≡ ╝╚╔ ╗╬ ═ ╓ ╩ ┠ ┨┯ ┷┏ ┓┗ ┛┳⊥﹃﹄┌ ┐└ ┘∟「」↑↓→←↘↙♀♂┇┅ ﹉﹊﹍﹎╭ ╮╰... 阅读全文
posted @ 2008-11-13 16:59 袁晓平 阅读(553) 评论(0) 推荐(0)
动态生成表格
摘要:发表时间:2006-6-20 16:16:00 using System;using System.Text;using System.IO;using System.Windows.Forms; public class DynmicTable{ /// /// 动态生成表格 /// public static void Main() { StringBuilder builder = n... 阅读全文
posted @ 2008-11-13 16:57 袁晓平 阅读(294) 评论(0) 推荐(0)
使网页不缓存的代码
摘要: 阅读全文
posted @ 2008-11-13 16:57 袁晓平 阅读(209) 评论(0) 推荐(0)
权限设计
摘要:每一种权限,相当于一种开关,也就是一个BIT,假如我们将这些权限,每一种权限用一位表示,那么,整个权限体系,不过是个BIT序列而已,也就是 说不过是二进制的011010而已,这样一来,就好解决问题了同样的问题,我们这样假设: 第一位 表示 读取第二位 表示 运行第三位 表示 修改第四位 表示 删除......以此类推,假如,我们想给一个用户分配运行和修改权限,其他权限都不给予,于是,他的权限字符串... 阅读全文
posted @ 2008-11-13 16:56 袁晓平 阅读(241) 评论(0) 推荐(0)
VC获取IE窗口的地址
摘要:HWND hwnd = 0; hwnd = ::FindWindowEx(hwnd, 0, TEXT("IEFrame"), NULL); hwnd = ::FindWindowEx(hwnd, 0, TEXT("WorkerW"), NULL); hwnd = ::FindWindowEx(hwnd, 0, TEXT("RebarWindow32"), NULL); hwnd = ::FindW... 阅读全文
posted @ 2008-11-13 16:52 袁晓平 阅读(649) 评论(0) 推荐(0)
C++中XMLHTTPRequest异步使用onreadystatuschange
摘要:首先需要编写一个类,实现IDispatch接口,然后把这个类传进去,代码如下:#ifndef XMLHTTPEVENTSINK_H_#define XMLHTTPEVENTSINK_H_ #include "msxml.h"#include #include #include class XMLHttpEventSink : public IDispatch{public: XMLHttp... 阅读全文
posted @ 2008-11-13 16:51 袁晓平 阅读(1337) 评论(0) 推荐(0)
C++类成员指针的使用
摘要:类的数据成员指针及类的成员函数指针代码如下:struct MemberPointer { int m_a; char* getname(int parama) const; MemberPointer() { m_a = 0; }}; char* MemberPointer::getname(int parama) const { return "hello, my name is member... 阅读全文
posted @ 2008-11-13 16:49 袁晓平 阅读(272) 评论(0) 推荐(0)
C++ Builder调用C#的Webservice
摘要:1、导入的Service.cpp// ************************************************************************ //// The types declared in this file were generated from data read from the// WSDL File described below:// W... 阅读全文
posted @ 2008-11-13 16:48 袁晓平 阅读(1540) 评论(0) 推荐(0)
SQLServer2005分页存储过程
摘要:--=============================================================================================--单表查询调用--***********************************************************************************************... 阅读全文
posted @ 2008-11-13 16:46 袁晓平 阅读(249) 评论(0) 推荐(0)
VC中使用Micrisoft VBScript RegluarExpression的另一方法
摘要:1、点击开始-运行,输入oleview.exe或从vs2003打开工具-OLE/COM 对象查看器2、使用该工具导出Micrisoft VBScript RegluarExpression为vbscript.idl4、midl vbscript.idl生成vbscript.tlb,很可能会拷到VC目录下,如D:\Program Files\Microsoft Visual Studio 8\VC ... 阅读全文
posted @ 2008-11-13 16:45 袁晓平 阅读(436) 评论(1) 推荐(0)
在VC8里调用VBScript.dll的RegularExpression
摘要:1、选择添加类--TypeLib中的MFC类。2、选择从注册表中添加,位置为C:\windows\system32\vbscript.dll3、生成类文件CMatch.h CMatch2.h CMatchCollection.h CMatchCollection2.h CRegExp.h CRegExp2.hCSubMatches.h4、将#import "c:\\windows\\system3... 阅读全文
posted @ 2008-11-13 16:43 袁晓平 阅读(524) 评论(0) 推荐(0)
C++ stl 复制文件的方法
摘要:头文件#ifndef ioshelperH#define ioshelperH #include #include //--------------------------------------------------------------------------- class IOHelper{public: void CopyFiles(char* srcPath, char* destP... 阅读全文
posted @ 2008-11-13 16:40 袁晓平 阅读(467) 评论(0) 推荐(0)
C++中将字节数组转换为字符数组的两个方法
摘要:方法一:void bytes_to_hexstr(char* dest, unsigned char* src) { char buffer[3]; for (int i = 0; i #include #include *const char* bytes_to_hexstr(unsigned char* buffer) {std::ostringstream oss;oss << std::... 阅读全文
posted @ 2008-11-13 16:39 袁晓平 阅读(906) 评论(0) 推荐(0)
FTP 协议命令实战
摘要:FTP 协议命令实战 废话就不多说了,下面是用TELNET连接Serv-U测试成功的例子 下载文件---------------------------------------------------------------------------TELNET 127.0.0.1 21220 Serv-U FTP Server v4.0 for WinSock ready... USER ADMI... 阅读全文
posted @ 2008-11-13 16:38 袁晓平 阅读(342) 评论(0) 推荐(0)
Ebooks C/C++
摘要:C++软件下载 http://www.codeguru.cn/fav/soft.htmC函数实例参考手册 http://www.codeguru.cn/CPP/CExample/十部算法经典著作 合集 http://www.codeguru.cn/cpp/10book二级试题全集 http://www.codeguru.cn/cpp/2JiCShiTiJi高质量C++/C编程指南 http://w... 阅读全文
posted @ 2008-11-13 13:26 袁晓平 阅读(272) 评论(0) 推荐(0)
C++复制文件(使用WindowsAPI)
摘要:bool TForm1::CopyFile2() { AnsiString srcPath = ExtractFilePath(Application->ExeName) + "Windows.pdf"; AnsiString destPath = ExtractFilePath(Application->ExeName) + "dest.pdf"; HANDLE hSrcFi... 阅读全文
posted @ 2008-11-13 13:20 袁晓平 阅读(924) 评论(0) 推荐(0)
C++复制文件的代码
摘要:bool TForm1::CopyFile() { DWORD fileSize, pos; int readLen; AnsiString srcPath = ExtractFilePath(Application->ExeName) + "Windows.pdf"; AnsiString destPath = ExtractFilePath(Application->E... 阅读全文
posted @ 2008-11-13 13:08 袁晓平 阅读(1082) 评论(0) 推荐(0)