如果在C#用WM_COPYDATA消息来实现两个进程之间传递数据 (转)
如果在C#用WM_COPYDATA消息来实现两个进程之间传递数据 (转)[@more@]简介: 本文着重讲述了如果用WM_COPYDATA消息来实现两个进程之间传递数据. 进程之间通讯的几种方法: 在windows程序中,各个进程之间常常需要交换数据,进行数据通讯。常用的方法有 使用内存映射文件 通过共享内存DLL共享内存 使用SendMessage向另一进程发送WM_COPYDATA消息 比起前两种的复杂实现来,WM_COPYDATA消息无疑是一种经济实惠的一中方法. WM_COPYDATA消息的主要目的是允许在进程间传递只读数据。Windows在通过WM_COPYDATA消息传递期间,
感受.net的跨语言特性 (转)
感受.net的跨语言特性 (转)[@more@]感受.NET的跨语言特性 这段时间学习.net,在网上也找了很多的资料,发现大多的教程都在讨论着.net的技术趋势和给软件生产带来的变化.常常是简单说说.象分布计算呀,组件化呀等等,却很少有这方面的稍稍感性点的认识.对于高手来说或许这样的介绍已经是足够的了.可对于大量象我这样的初学者,其实很难能理解那分布计算.那组件化的到底代表着什么,唯一能知道的就是那是很高深的技术. 于是乎自己有了个不自量力的想法.把自己看过的东西写出来,希望能对象我这样的菜鸟对C#或者说是.net有点感性的认识,同
一个粗略的用于计算IT技术图书收益的数学模型 (转)
一个粗略的用于计算IT技术图书收益的数学模型 (转)[@more@]一个粗略的用于计算IT技术图书收益的数学模型 XML:namespace prefix = o ns = "urn:schemas-microsoft-com:Office:office" /> 众所周知,IT类的技术图书相比其他书籍来说有一个显著的特点,那就是:贵。经常可以看到有人在网上讨论某本书是不是贵了,有人说它贵,但也有人说相对于其能够给人带来的收益而言,它并不贵。那么到底是谁说了算呢,我想大家都是“公说公有理,婆说婆有理”,但大部分时间都是以个人主观看法为依据。在这,我试图给出一个简单的数学模型来向
初为项目经理 (转)
初为项目经理 (转)[@more@]初为项目经理 原作:Karl E. Wiegers 翻译改写:haow这一天终于来到了:你从一个一线开发人员被提拔为项目经理。也许你一直在期盼,也许你心里还忐忑不安,也许这是你的职业发展选择,也许你只是不情愿的答应老板“试一下”。不管哪种情况,可能你并没有项目和人员管理及领导的教育背景或者培训经历。 领导和管理(这两者是不同的)远非简单的与Dilbert 的老板背道而驰(译者注:Dilbert 是一个漫画人物,以“拥有”一个“白痴老板”而著称)。当你计划如何做好项目管理时,考虑采取以下列出的行动。也许你
用XMLHTTP Post/Get HTML页面时的中文乱码问题之完全Script解决方案 (转)
用XMLHTTP Post/Get HTML页面时的中文乱码问题之完全Script解决方案 (转)[@more@]以前我曾经贴过一篇用XMLHTTP Post FoRM 的帖子,那里的代码中我Post E文的Value毫无问题,但是后来发现Post含有中文的表单时会出现乱码,原因当然是UTF-8 和GB2312 之间的转换问题了!TNND,打倒GB2312!大家都用UTF8多好。用xmlhttp Post Form时的表单乱码有两方面的原因——Post表单数据时中文乱码;服务器Response被XMLHTTP不正确编码引起的乱码。换句话说,本文主要解决两个问题——怎样正确Post中文内容&怎样正确显示得到的中文内容。Part I Post
两种Delphi实现Singleton模式方法 (转)
两种Delphi实现Singleton模式方法 (转)[@more@]两种Delphi实现Singleton模式方法 haozi 摘 要 本文描述了两种Singleton模式的Delphi实现方式,并做了对比分析。关键字 设计模式,Singleton Singleton(单件)模式是一种很有用的设计模式。它的意图的是:仅仅创建一个类的实例,并提供一个访问它的全局访问点。全局变量使的一个对象易被访问,但不能防止你实例化多个对象。单件模式的目的就是确保在程序的生命周期内只有一个实例存在。看下面的代码:procedure TForm1. Button1Click(Sender: Tobject);var lS1 : TSingleton;&
The Brush Origin (转)
The Brush Origin (转)[@more@] The Brush Origin One attribute of a device context that you should be aware of when using dithered brush colors or hatch brushes is the brush origin. When windows fills an area with a hatched or dithered brush pattern, it tiles an 8-pixel by 8-pixel pattern horizontally and vertically within the affected area. By default, the origin for this pattern, better known as the brush origin, is the device point (0,0)—the screen pixel in the upper left corner of th
MFC Application---The Frame Window Object (转)
MFC Application---The Frame Window Object (转)[@more@] The Frame Window object MFC's CWnd class and its derivatives provide object-oriented interfaces to the window or windows an application creates. Hello's window class, CMainWindow, is derived from MFC's CFrameWnd class, which is derived from CWnd. CFrameWnd models the behavior of frame windows. For now, you can think of a frame window as a top-level window that serves as an application's primary interface to the outside world. In the
MFC Application (转)
MFC Application (转)[@more@]Your First MFC Application It's time to build your first MFC application. And what better place to start than with one that displays "Hello, MFC" in a window? Based on the classic "Hello, world" program immortalized in Brian Kernighan and Dennis Ritchie's The C Programming Language (1988, Prentice-Hall), this very minimal program, which I'll call Hello, demonstrates the fundamental principles involved in using MFC to write a windows application. Among other things, y
Introducing MFC (转)
Introducing MFC (转)[@more@]Introducing MFC MFC is the C++ class library microsoft provides to place an object-oriented wrapper around the windows api. Version 6 contains about 200 classes, some of which you'll use directly and others of which will serve primarily as base classes for classes of your own. Some MFC classes are exceedingly simple, such as the CPoint class that represents a point (a location defined by x and y coordinates). Others are more complex, such as the CWnd class that encap
The Windows Programming Model-----messages (转)
The Windows Programming Model-----messages (转)[@more@] Messages, Messages, and More Messages Where do messages come from, and what kinds of information do they convey? windows defines hundreds of different message types. Most messages have names that begin with the letters "WM" and an underSCOre, as in WM_CREATE and WM_PAINT. These messages can be classified in various ways, but for the moment classification is not nearly as important as realizing the critical role messages play in the
The Windows Programming Model (转)
The Windows Programming Model (转)[@more@]The windows Programming Model Programs written for traditional operating environments use a procedural programming model in which programs execute from top to bottom in an orderly fashion. The path taken from start to finish may vary with each invocation of the program depending on the input it receives or the conditions under which it is run, but the path remains fairly predictable. In a C program, execution begins with the first line in the function n
ATL问题集-#4~#8 (转)
ATL问题集-#4~#8 (转)[@more@]/*此文是我将网上的一些文章,自已遇到的问题进行整理,有些是翻译,所有只供学习讨论,如有版权还归原作者——作者:黄森堂*/ #4 如何注册控件? 这是一个很常见的问题,最简单用Winodws自带的Regsvr32或其它工具等,其原理是利用控件的RegsiterServer函数与UnregsiterServer来实现注册与取消注册,以下是代码实现注册: Dword RegisterServer( char* szPath ){ HINSTANCE hInstance = ::LoadLibrary( szPath ); if ( 0 == hInstance ) { return ::GetLastError(); } 
帮助的制作 (转)
帮助的制作 (转)[@more@]帮助的制作 ---- 一个完整的程序应该有在线帮助。制作在线帮助并不难 ,主要工作在制作帮助文件上,这需要一个帮助文件编译器,在C++ Builder的“CBuilder3HelpTools" 目录下就有一个帮助文件编译器HCW。实际上帮助编译 器的作用就是将.rtf文件编译成.hlp文件。让我们来看一个最简单的例子,用word随便写一个.rtf文件,启动HCW,先建一个项目;按窗体右边的“Files”按钮, 把刚才做的.rtf文件添加进去;最后按右下角的“Save and Compile”按钮,这样在你的项目的目录下,将会出现一个和项目同名的.hlp文件。在程
手工创建数据库的全部脚本及说明 (转)
手工创建数据库的全部脚本及说明 (转)[@more@] 手工创建数据库的全部脚本及说明 系统环境: 1、操作系统:windows 2000 Server,机器内存128M 2、数据库: ORACLE 8i R2 (8.1.6) for NT 企业版 3、安装路径:D:ORACLE 建库步骤: 1、手工创建相关目录 D:Oracleadmintest D:Oracleadmintestadhoc D:Oracleadmintestbdump D:Oracleadmintestcdump D:Oracleadmintestcreate D:Oracleadmintestexp D:Oracleadmintestpfile D:Oracleadmintestudump D:Oracleoradatatest D:Orac
在不刷新页面的情况下调用远程asp脚本 (转)
在不刷新页面的情况下调用远程asp脚本 (转)[@more@] 1.请在sql SERVER 中建一数据库 name:house 在house中运行下列脚本if exists (select * from sysobjects where id = object_id(N'[dbo].[City]') and OBJECTPROPERTY(id, N'IsUserTable') = 1)drop table [dbo].[City]GOif exists (select * from sysobjects where id = object_id(N'[dbo].[Area]') and OBJECTPROPERTY(id, N'IsUserTable') = 1)drop table [dbo].[Area]GOCREATE TABLE [dbo].[City] ( [id] [int] ideNTITY (1, 1) NOT NULL , [name] [nvarchar] (10) N
把vfp表中的数据导入指定的excel文件中 (转)
把vfp表中的数据导入指定的excel文件中 (转)[@more@] select cb_zwhzgo topXLApp = Getobject('F:tempsqlinout.xls','excel.sheet')XLApp.application.visible=.F.XLApp.application. windows("sqlinout.xls").Visible = .T.XLSheet =XLApp.Sheets['Sheet1']XLSheet.Cells(1,1).Value = "Month"XLSheet.Cells(1,2).Value = "ZwCode"XLSheet.Cells(1,3).Value = "Qty"XLSheet.Cells(1,4).Value = "Cost"XLSheet.Cells(1,5).Value = "Money" i=1select cb_zwhzdo while not eof () XLSheet.Cells(i+1,1).Value=Month XL
基于软件实现网站负载均衡(1) (转)
基于软件实现网站负载均衡(1) (转)[@more@]基于软件实现网站负载均衡(1) [ 作者: 仲季 添加时间: 2001-5-21 下午 06:09:01 ]来源:www.cci.NET.com每个网站都希望系统高效能且易于扩展,然而,当与复杂设备结合使用时,常常需要昂贵的资金投入,人们往往难以承受。目前,主要使用多个相对廉价的服务器通过均衡负载解决上述问题。对于以windows为核心构建web服务器的网站来说,微软的Application Center 2000的负载均衡的功能比较简单。但Application Center 2000声称,它将会基于软件来实现网络的可扩展性,以便适用于IT专业领域。
一个简单木马列子(1) (转)
一个简单木马列子(1) (转)[@more@]一个简单木马列子(1) [ 作者: 病毒 添加时间: 2001-5-21 下午 06:12:02 ]来源:绿色兵团 俺写文章一般都赋源代码.除关键部分外向来不爱打太多说明性文字,因为觉得这样 才比较实际,关于那些函数用法和功能大可以去翻书,哪里讲的比谁都详细. 这里给了一个俺用异步SOCKET方式, 直接调用WINSOCK api,WIN SDK写的木马(VC,C++ BUILDER下均编译,调试通过),无须客户端,编译后才几十K.实现了些 主要功能,文件浏览,上传,下载(均支持统配符),改变目录,获取系统信息,从CACHE取密码, 执行文件,显示进程, 发送消
XML与其相关技术(1) (转)
XML与其相关技术(1) (转)[@more@]XML与其相关技术(1) [ 作者: 廖家序 添加时间: 2001-5-21 下午 06:13:31 ]XML有很多相关的技术,将这些技术结合起来,才能充分发挥XML的强大功能。这些技术包括:Xlink与Xpointer(设置XML的超链接)、dom(Document object Model:文件对象模型,存取、操作文件的内容)、Namespaces(解决不同元素有相同名称的问题)、xhtml(下一代的HTML)等。■Xlink与Xpointer在XML的规范中,我们看到它并没有规定有关文件链接的问题。为了使XML文件也能够有类似HTML文件超链接的功能,w3c制定了Xlink和Xpion