软件深度挖掘(零)绝学无忧所引出的 (转)
软件深度挖掘(零)绝学无忧所引出的 (转)[@more@] 软件深度挖掘(零)绝学无忧所引出的老子曰:“绝学无忧”有两种人没有烦恼,一种是不用学习知识的人,一种是学完所有知识的人。 我们都想作为后者,于是我们不断努力着,于是也被无情的折磨着。当我们感觉自己没有这个能力完成它时,我们就会用事业有成来代替那个不可能实现的宏愿,毕竟创业是有机会成功的。但创业又不是公平的,因为我们的处境不一样,官方路线一般是我们这些没有别的出路的人的选择,这样能相对公平些。于是我们选择了一种新兴产业作为我们的创业行业--软
OICQ登录号码清除器实现原理 (转)
OICQ登录号码清除器实现原理 (转)[@more@]OICQ登录号码清除器实现原理 OICQ已经成为现在这个网络世界中最为时尚的聊天、即时通讯工具了!对于它,许多程序员都写了些相关小工具,像一些OICQ聊天辅助工具、OICQ密码获取器、聊天记录查看器等等,分别用作于不同的用途。其时,我也对于qq这个好东东比较痴迷,但在使用过程始终发现有些情况的出现是我所不愿意看到的。比如说:在网吧上网,疯狂QQ后,你的聊天记录,你的QQ号码全部留在了网吧的机器中。此时,你从网吧离开。又来一位聊QQ者,可能后来
我眼里的RuntimeClass实现 (转)
我眼里的RuntimeClass实现 (转)[@more@]最近开始学习VC了,谈谈心得吧。班门弄斧,请多多指教。 心得之一: MFC中RuntiemClass支持的实现: 只要是从Cobject派生的类,可以轻松实现RuntiemClass支持。当然,是通过编译器提供的宏来实现的。那么其实现机制是怎样的呢?我觉得只需要四个步骤。 首先让我们简化一下CRuntiemClass和CObject的定义,抽取出与RuntiemClass相关的部分: struct CRuntimeClass{ char m_lpszClassName[255]; int m_nObjectSize; CObject* (*m_pfnCreateObject)(); CObject* CreateObject(
从另一个考虑来看代码的风格 (转)
从另一个考虑来看代码的风格 (转)[@more@] 从另一个考虑来看代码的风格XML:namespace prefix = o ns = "urn:schemas-microsoft-com:Office:office" /> 相信大家对代码的风格都有自己的观点,都有自己的风格。但大家心目中最完美的一定是简洁,易读,高效率的。 但有时效率和简洁性、可读性是不可兼顾的。这就要看开发的目的是什么了。对时间要求不高的当然要注重简洁和可读性,而另一些要求速度快,或体积小的程序则可能更强调效率。 我想现今随着计算机存储器的飞速发展程序的体积越来越显得不重要了。记得当年我在大一时所
CreateFileMapping的MSDN翻译和使用心得 (转)
CreateFileMapping的MSDN翻译和使用心得 (转)[@more@]测试创建和打开文件映射的时候老是得到"句柄无效"的错误, 仔细看了MSDN以后才发觉是函数认识不透, 这里把相关的解释翻译出来HANDLE CreateFileMapping( HANDLE hFile, //物理文件句柄 LPSECURITY_ATTRIBUTES lpAttributes, //安全设置 Dword flProtect, //保护设置 DWORD dwMaximumSizeHigh, //高位文件大小 DWORD dwMaximumSizeLow, //低位文件大小 LPCTSTR lpName //共享内存名称);1) 物理文件句柄 任何可以获得的物理
关于字符串的几个有用函数 (转)
关于字符串的几个有用函数 (转)[@more@]1、测试字符串长度(中英文) function strLen(s){ var i,str1,str2,str3,nLen; str1 = s.value; nLen = 0; for(i=1;i<=str1.length;i++) { str2=str1.substring(i-1,i) str3=escape(str2); if(str3.length>3) { nLen = nLen + 2; } else { nLen = nLen + 1; } } return nLen;}2、替换 function Replace(s1,s2,s3){ var len1 , len2 , i; var str1 , str2 ; str1 = s1; len1 =
Vertex Shader & Pixel Shader 介绍 (转)
Vertex Shader & Pixel Shader 介绍 (转)[@more@] Vertex Shader & Pixel Shader 介绍 XML:namespace prefix = o ns = "urn:schemas-microsoft-com:Office:office" /> 1. 固定功能的图形处理流水线(fixed function graphics pipeline) 能够实现Vertex Shader和Pixel Shader的显卡的图形处理流水线被称作为是可编程的,相对而言,在此之前的图形处理流水线被称作为是固定功能(fixed function),下面是OpenGL图形处理的一个简图: 完整的OpenGL图形处理流水线为称作为OpenGL机器(Ope
提取win98上网密码 (转)
提取win98上网密码 (转)[@more@]unit Unit1;interfaceuses windows, SysUtils, Classes, Forms, shellapi, Controls, StdCtrls;type TForm1 = class(TForm) GroupBox1: TGroupBox; ListBox: TListBox; Label1: TLabel; Label2: TLabel; procedure Label1Click(Sender: Tobject); procedure FormShow(Sender: TObject); private { Private declarations } public hMPR: THandle; end;var F
GDI中的坐标映射问题 (转)
GDI中的坐标映射问题 (转)[@more@] GDI中的坐标映射问题XML:namespace prefix = o ns = "urn:schemas-microsoft-com:Office:office" /> 阿里 在我们进行绘图程序的开发时,不可避免地会遇到坐标映射的问题,而这恰恰是一个很伤脑筋、绕也绕不明白的问题。我就经常为此而一卡就是几个小时,恨得要命,终于有一天心一横,豁出一个周末的晚上,啃了所有找得到的资料,特别是那蝌蚪一般的MSDN,发现了相关问题的冰山之一角,不过就这就已经有一种豁然开朗的感觉了,把它写出来还希望能够对受到同样问题困扰的各位看官有一点点帮助
对DBGrid 的巧妙用法实现查询 (转)
对DBGrid 的巧妙用法实现查询 (转)[@more@]void __fastcall TForm1::dbGrid2DblClick(Tobject *Sender){ // INGOODS‘ 是进货表 int sumno=0,i; INGOODS->Edit();file://----------------------------------------------------- AnsiString thisgoodsname; DBGrid2->selectedIndex=1; thisgoodsname=DBGrid2->SelectedField->Value; file://ShowMessage(thisgoodsname);//file://----------------------------------------------------- Query2->Close(); Query
利用双计算机调试游戏程序 (转)
利用双计算机调试游戏程序 (转)[@more@] 在游戏编程时,调试程序是很困难的事情,特别是全屏模式,总是无法切换到VC的ide环境,以前我一般是利用BltFast代替Flip以保证GDI Surface始终在前,但效果不是太好,前一段时间我在VC中发现一个宝贝,可以利用两台计算机调试程序,一台运行程序,另一台运行VC来调试,再加上TRACE输出,真是爽的不得了,下面是我的做法: XML:namespace prefix = o ns = "urn:schemas-microsoft-com:Office:office" />1. 保证两台电脑是联网的,最好是都摆在你的面前,不然的话你肯定要跑来跑去 了。还要
Is VS.NET ready for enterprise? (6) (转)
Is VS.NET ready for enterprise? (6) (转)[@more@] LT: Given that the .NET platfoRM is open to all ISVs, doesn't this mean that developers can mix and match .NET-aware lifecycle tools and get this kind of integration? MD: There are different levels of integration. The VS.NET environment provides much more integration, and in that sense it is certainly easier to use different vendors' tools. But you still face the issue of deeper semantic integration, such as data integration. With differe
The Overview of ECMA C# Language Specialisation (2) (转)
The Overview of ECMA C# Language Specialisation (2) (转)[@more@]8.2 类型C# 支持两种类型:值和引用。值类型包括简单的类型(如 char、int 和 float),枚举和结构。引用包括类,接口,代理和矩阵。值与引用的不同在于值的变量直接包含它的数据,而引用的变量只是存储对象的引用。使用引用可以使两个变量同时引用一个对象,这样对一个变量的操作就会影响另一个引用同一个对象的变量。但每个值都有自己的一份数据拷贝,使变量之间互不影响。 using System;class Class1{ public int Value = 0;}class Test{ static void Mai
Is VS.NET ready for enterprise? (3) (转)
Is VS.NET ready for enterprise? (3) (转)[@more@] LT: And when everything is a web application that has to be up 24x7x365, how do you do testing? MD: It's a real issue—one that our telecom customers have had for many years, by the way. .NET provides a standardized approach for how to test distributed Web applications, but new challenges remain. Say you depend on a given Web Service. Then its vendor publishes a new version of the Web Service with a different compute/sum analytic metric.
Is VS.NET ready for enterprise? (5) (转)
Is VS.NET ready for enterprise? (5) (转)[@more@] LT: For the uninitiated, what抯 the relationship or difference between the .NET framework and pattern mechanisms? For someone used to working on a more granular level, where should they start to master this approach? MD: Pattern mechanism is a tool (an add-in) that supports model-to-model transformations specified in the foRM of a pattern with additional transformation semantics. In other words, you define a pattern in such a way, that it
Is VS.NET ready for enterprise? (2) (转)
Is VS.NET ready for enterprise? (2) (转)[@more@] LT: What changes in the development environment itself will most affect enterprise developers? MD: Being able to integrate the VS.NET ide with ISV lifecycle development tools makes it easier to tackle large-scale projects. Visual Studio .net has been reengineered substantially, with a whole new framework that makes it easier to integrate the VS.NET IDE with third-party lifecycle tools, such as ones for project management, modeling, versio
直接通过ODBC API访问SQL数据库 (转)
直接通过ODBC API访问SQL数据库 (转)[@more@]*********************************OdbC - Open DataBase Connectivity********************************* Basic Steps Connecting to the sql SERVER DataBase for retrieving information from tables *************************************************************The steps 1 - 3 are for connecting to the SQL SERVER Database************************************************************* 1. Allocate ODBC Environment Handle If SQLAllocEnv(glEnv) <> 0 Then Msg
农历的算法 (转)
农历的算法 (转)[@more@]最新说明:本文为他人原作,现在我说知道的是本站用户泰山所作! Dim WeekName(7), MonthAdd(11), NongliData(99), TianGan(9), DiZhi(11), ShuXiang(11), DayName(30), MonName(12)Dim curTime, curYear, curMonth, curDay, curWeekdayDim GongliStr, WeekdayStr, NongliStr, NongliDayStrDim i, m, n, k, isEnd, bit, TheDate Private Sub Form_Load()'获取当前系统时间curTime = Now() '星期名WeekName(0) = " * "WeekName(1) = "星期日"WeekName(2) = "星期一"WeekName(3) = "星期二"WeekName(4) =
Is VS.NET ready for enterprise? (1) (转)
Is VS.NET ready for enterprise? (1) (转)[@more@] Rational Software belongs to a handful of companies whose products span the full spectrum of lifecycle tools—everything from requirements analysis to production testing. So who better to ask about the impact of .NET on enterprise application development than Rational founder and CEO Mike Devlin? Visual Studio Magazine Executive Editor Lee Th?recently chatted with Devlin about this and other topics of interest to the development community.
读写INI文件的四个函数 (转)
读写INI文件的四个函数 (转)[@more@]'文件名sourcedb.ini文件Private Declare Function GetPrivateProfileString Lib "kernel32" Alias "GetPrivateProfileStringA" (ByVal lpApplicationName As String, ByVal lpKeyName As Any, ByVal lpDefault As String, ByVal lpReturnedString As String, ByVal nSize As Long, ByVal lpFileName As String) As LongPrivate Declare Function WritePrivateProfileString Lib "kernel32" Alias "WritePrivateProfileStringA" (ByVal lpApplicationName As String, ByVal lpKeyName As Any, ByVal lp