用javascript连接数据库的解决方法 (转)
用javascript连接数据库的解决方法 (转)[@more@]好多网上的朋友都在解决某些问题的时候,都感觉到很困惑,而很多人都觉得用Javascript连接数据库很是不理解,甚至于就断定Javascript只能被客户端所执行,不能连接数据库,而且我查找了一下,CSDN上介绍的太笼统,初学者根本就看不懂,其他的论坛我没有搜索。介于此种情况,我决定好好看看MSDN ,通过看了VC++的连接数据库的例子,总结出JAVASCRIPT连接数据库的方法,现公布给大家 <script language=javascript> // ^_^ // //(c) in 2002-2003 by Alex(Chinese:蒋健华) /
关于侯捷的一个观点的一点个人意见 (转)
关于侯捷的一个观点的一点个人意见 (转)[@more@] 上个月的时候,花了六十大元买了这本在网上很有名气的名著——《深入浅出MFC》,刚买回来就好象是得到了珍宝一样的高兴,当天就翻了一百来页,啊,看起真是爽啊,爽,一些我以前没有得到解答的疑惑顿时都得到了准确的回答。觉得这完全是一本答疑的书。 接着我就接着向下看,唉,惨不忍睹,痛苦,面对接下来的整整半个月的时间,留给我的只是翻书声,我一页一页地往下翻,不是因为我都看懂了,而是因为我都看不懂,然后我又一页一页地往前翻,是因为这本书的前后关联太大了,前面没
用ASP发电子邮件 (转)
用ASP发电子邮件 (转)[@more@]用ASP发电子邮件<%Dim strTo, strSubject, strBody 'Strings for recipient, subject, bobyDim objCDOMail 'The CDO object'First we'll read in the values enteredstrTo = Request.Form("to")'These would read the message subject and body if we let you enter it'strSubject = Request.Form("subject")'strBody = Request.Form("body")strSubject = "Sample E-mail sent from X-Bit!"' This is multi-lined simply for readabilitystrBody = "This message was sent from a sample at X-Bit. "strBo
Delphi的组件读写机制(二) (转)
Delphi的组件读写机制(二) (转)[@more@]XML:namespace prefix = o ns = "urn:schemas-microsoft-com:Office:office" /> Ø TFiler 先来看一下TFiler类的定义: TFiler = class(Tobject) private FStream: TStream; FBuffer: Pointer; FBufSize: Integer; FBufPos: Integer; FBufEnd: Integer; Froot: TComponent; FLookupRoot: TComponent; FAncestor: TPersistent; FIgnoreChildren: Boolean; protected
Delphi的组件读写机制(一) (转)
Delphi的组件读写机制(一) (转)[@more@]Delphi的组件读写机制(一) 一、流式对象(Stream)和读写对象(Filer)的介绍 在面向对象程序设计中,对象式数据管理占有很重要的地位。在Delphi中,对对象式数据管理的支持方式是其一大特色。 Delphi是一个面向对象的可视化设计与面向对象的语言相结合的集成开发环境。Delphi的核心是组件。组件是对象的一种。Delphi应用程序完全是由组件来构造的,因此开发高性能的Delphi应用程序必然会涉及对象式数据管理技术。 对象式数据管理包括两方面的内容:● 用对象来管理数据● 对各
The Tomcat 4 Servlet/JSP Container下怎样装载类 (转)
The Tomcat 4 Servlet/JSP Container下怎样装载类 (转)[@more@]以下的规则覆盖了大约95%的内容,关于开发者和配置者必须要做的工作,关于在什么地方放置类文件和资源文件来使他们变得有效。 对于那些特定某个web应用的类和资源文件,没有打包的类和资源文件放置在你的web应用路径的/WEB-INF/classe下,或者放置包含那些类和资源文件的JAR文件在/WEB-INF/lib下 对于那些为所有的WEB应用所共享的WEB应用类和资源文件,没有打包的类和资源文件放置在$CATALINA_HOME/shared/classes下,或者放置那些包含类和资源文件JAR包在$CATALINA_HOME/s
递归与goto (转)
递归与goto (转)[@more@]递归与gotoXML:namespace prefix = o ns = "urn:schemas-microsoft-com:Office:office" /> written by leezy_2000 记得刚开始学习C时,老师和教材都有明训:“千万不要乱用goto语句,否则将导致程序可读性极度下降。但能够极大提高效率地情况,可以考虑使用。”抱着不求有功,但求无过地心思,goto一度被我扔到了垃圾篓。后来随着阅读代码量地增加,我发现goto至少在两个方面可起到改善程序地作用。一是出错处理,二是用来模仿递归。用来做出错处理,在某些特定的场合可以,增强
关于对象持久类框架的构架设计(Part1) (转)
关于对象持久类框架的构架设计(Part1) (转)[@more@]关于对象持久类框架的构架设计 用语定义: 1. 世界:在本文中世界定义为系统范围内的所有,包括数据库、数据库记录、对象实例、对象等(名词) 2. 类:是定义一组相似对象的共同特征标准集合,表现为数据结构(属性与关系)与行为(操作与)。(名词) 3. 对象:一个通过状态与行为区别于其他实体的实体,其封装了状态与行为,状态表现为关系与属性,行为则通过操作与方法来体现。对象是一个类的概念上的实体(也就是现实存在的类)。(名词) 4. 对象元数
获取特定的字符串 (转)
获取特定的字符串 (转)[@more@] 为了建立一个通用的投票调查系统,往往不能确定有多少选项,普通的作法就是建立多个字段,比如10个字段,但要是多余10个选项就不行了。所以基于这种考虑,我设计了只需一个字段(当然长度够长或是备注型)就可以实现。aaadfgfga||bfgbbb||ccdfgsgcc||dsfdfdsf||...||为了实现读取"||"之间的内容,我编写了如下代码'SStr:表示分隔字符串,LStr:表示要搜索的字符串,i:表示要取第几段字符串Function GetStr(SStr,LStr,i)dim ks,js,cd,wz,j'ks:表示开始,JS:计数,cd:长度,wz:位置,j:循环变量&
书评杂感 (转)
书评杂感 (转)[@more@]书评杂感 荣耀 2003 我读过的书评文章中,好的就不说了,差的大致分为两类:一为吹捧型,二是内容简介型。大部分属于前者。 说一本书好,恨不得用尽世界上所有溢美之词。渐渐地,我总结出了一些经验(但也并非绝对),假如说一本书“绝好”,意思是这本书“还行”,说一本书“顶级”,其实就是“中上等”。虽然没有人能够做到绝对客观,但对于个人倾向情绪,我建议最好还是能控制一下。否则,读者果真因为看了你的书评去买书的话,一旦失望至情绪失控,不但出书的人要遭殃,可能连阁下也要挨
文件管理系统 (转)
文件管理系统 (转)[@more@]/***********文 件 管 理 系 统***********/#include <stdio.h>#include <stdlib.h> /*不容易归类的标准函数库*/#include <conio.h>#include <string.h>#include <sysstat.h> #include <fcntl.h> /*非标准文件输入输出操作的代码符号属性*/#include <dos.h>#include <io.h> int init() /*初始化操作界面函数*/{int i; clrscr(); gotoxy(23,4);printf("* * * * * * * * * * * * * *"); gotoxy(27,5);printf("FILE MANA
Write Your Own Operating System Tutorial(7) (转)
Write Your Own Operating System Tutorial(7) (转)[@more@]Lesson 7: Start Saying Goodbye To BIOS Now that we have a boot loader that will load our operating system, and thus can make our operating system larger than one sector, we can now begin to add some complexity to our system. One of the first things to do is to loosen our tie to BIOS. So far we have been using BIos functions for all of our input and output. BIOS hides all of the input and output from us with its interface,
Write Your Own Operating System Tutorial(6) (转)
Write Your Own Operating System Tutorial(6) (转)[@more@]Lesson 6: Boot Loader Everything we’ve done so far has been placed entirely inside the boot sector. We can’t make our operating system very big at all if it is to fit in one sector. We need a way of expanding. We will do this by making a boot program that simply loads an executable file off the disk and begins executing it. This is called a boot loader. This file loaded off the disk can be as big as we want,
Write Your Own Operating System Tutorial(5) (转)
Write Your Own Operating System Tutorial(5) (转)[@more@]Lesson 5: Let’s Make It Interactive All of this printing stuff to the screen is fun, but no operating system would be any good at all if it did not provide any interactivity. Let’s make it read input from the keyboard. Again we will be using calls to a function in BIOS to read the keyboard. We are going to be using function 0, interrupt 0x16. This is done easily with the following two instructions. xor ah
Write Your Own Operating System Tutorial(3) (转)
Write Your Own Operating System Tutorial(3) (转)[@more@]Lesson 3: NASM In this lesson we will learn to use an assembler to write our programs. In previous lessons we have assembled them using DEbug. After playing around with this for a while, you will quickly see that it would be a pain to use DEBUG to create a program of more than a handful of instructions (even harder to modify). We need a simpler way. We will start by using the .NETwide Assembler” (NASM). Go to
Write Your Own Operating System Tutorial(4) (转)
Write Your Own Operating System Tutorial(4) (转)[@more@]Lesson 4: Hello, World Now is the time you’ve all been waiting for. Finally we get to the classic “first” program. Every decent programming book has a “Hello, World” program, and now we know enough to make a “Hello, World” operating system. If you have done some experimenting on your own and have already done this, then you may want to skip this lesson. We will create a function to print a string and use it t
相当于delphi的日历控件 (转)
相当于delphi的日历控件 (转)[@more@]file://calendar.js<!--Start-->var YearStr,MonthStr,DayStr,NowDayStr;var WeekStr,week,week_one;var WeekArr = new Array("星期日", "星期一", "星期二", "星期三","星期四", "星期五", "星期六");var dt = new Date();var showtype;var caleX = 0;var caleY = 0; YearStr = dt.getYear();MonthStr = dt.getMonth() + 1;NowDayStr = DayStr = dt.getDate();week = dt.getDay();WeekStr = WeekArr[week];document.write("<DIV id=idCalendar style='position:ab
类似于C语言的printf函数 (转)
类似于C语言的printf函数 (转)[@more@]The function fmt helps you to format a string in vbscript as you do in C. In C, if you write: printf( "this is %s number %d", "test", 1 ); then you would use the function fmt in VBScript like this: dim strstr = fmt( "this is %x number %x", Array("test", 1) ) DetailsThe complete function looks like this: ' works like the printf-function in C.' takes a string with format characters and an array' to expand.'' the format characters are always "%x", indepen
SCO5.0.5安装步骤 (转)
SCO5.0.5安装步骤 (转)[@more@]1、安装准备工作:[1]准备好安装介质,包括引导盘和介质光盘。[2]一些网卡需要在DOS环境下设置地址和中断才能使用,安装前需要预先设好。[3]安装前应保证网络连通好。二、将SCO SOPENSERVERBOOT DISK软盘插入软驱,打开主机和显示器电源,启动机器。三、当出现BOOT:提示符时,按回车键启动系统。四、启动完毕,屏幕底部出现如下提示:时,按〈.NETER〉键进入下一屏。五、此屏是一些介绍性信息,按<enter>键键进入下一屏。六、选择安装介质:移动光标,高亮度Accept above choice
ANSI颜色使用研究 (转)
ANSI颜色使用研究 (转)[@more@] 总所周知,ES2类的LPMUD是一个只有文字的世界,因为没有任何图像,所以正是因为有16种ANSI颜色,才使得我们这个世界变得丰富多彩,更有吸引力。出于一名巫师和一名网页制作者的考虑,目前的巫师在使用ANSI颜色时,常常不是惜墨如金一点都不用就是不分场合到处乱用,这样对于一个MUD的表现力而言都是不好的。所以我今天有空就想随便说说有关ANSI COLOR的一些使用方法,给大家参考。 我们先从源头说起,之所以加了ANSI标示符的字符就可以显示不同的颜色,是因为通过客户端像zMUD这样的软件,能