08 2009 档案

摘要:IDocHostUIHandlerDispatch 阅读全文
posted @ 2009-08-31 14:12 Fan Zhang 阅读(382) 评论(1) 推荐(0)
摘要:IEXPLORE.exe是应用程序,它可以host SHDOCVW.dll,即WebBrowser Control,它是一个ActiveX Control。 WebBrowser Control有可以host mshtml.dll,它是一个ActiveX文档。 Shdocvw.dll提供导航、历史记录等操作。 Mshtml.dll负责解析html,渲染(render)html操作等。 阅读全文
posted @ 2009-08-31 12:59 Fan Zhang 阅读(286) 评论(0) 推荐(0)
摘要:MSHTML是ActiveX文档,它可以host ActiveX控件。 为了显示html页面,推荐host WebBrowser Control。 To replace the menus, toolbars, and other UI for MSHTML, the host should implement the IDocHostUIHandler interface. MSHTML o... 阅读全文
posted @ 2009-08-31 00:15 Fan Zhang 阅读(312) 评论(0) 推荐(0)
摘要:一个人久了,因为怕伤害,懒惰去恋爱,懒惰去了解人。 一个人久了,朋友会越重要。 一个人久了,会越来越喜欢听歌。 一个人久了,电话会常常忘记带。 一个人久了,都会养成一个怪癖(如收集狂,网族) 一个人久了,对爱情会越挑剔。 一个人久了,除了寂寞点以外,还是蛮开心的。 一个人久了,看到样子不错的异性,生理吸引内心抗拒。 一个人久了,会变的比恋爱时候成熟。 一个人久了,会害怕看鬼片。 一个人久了,会常常... 阅读全文
posted @ 2009-08-30 20:35 Fan Zhang 阅读(176) 评论(0) 推荐(0)
摘要:void ReadRegistry(){ NTSTATUS nStatus; ULONG default_value = 0; static RTL_QUERY_REGISTRY_TABLE table[3];//必须比实际元素多一个,即N+1 KdPrint(("ReadRegistry\n")); table[0].Flags = RTL_QUERY_REGISTRY_D... 阅读全文
posted @ 2009-08-28 09:37 Fan Zhang 阅读(382) 评论(0) 推荐(0)
摘要:MessageBeep(-1); 阅读全文
posted @ 2009-08-26 16:14 Fan Zhang 阅读(183) 评论(0) 推荐(0)
摘要:bp是对API模块函数下断(将直接中断在API函数内部),bpx是对程序模块调用API下断(断在程序领空调用API函数的语句上)。 阅读全文
posted @ 2009-08-26 14:19 Fan Zhang 阅读(821) 评论(0) 推荐(0)
摘要:  View always First Thunk选中后,ThunkRVA表示的是First Trunk,否则是Original Trunk。 在打开dll之前,First Trunk和Original Trunk指向的都是这个函数名的字符串。 但加载DLL成功后,First Trunk记录的事IAT表。 如 Call DialogBoxParamA,会变成 Call [4000... 阅读全文
posted @ 2009-08-25 15:41 Fan Zhang 阅读(500) 评论(0) 推荐(0)
摘要:第一个例子 此例子位于G:\Samples\VC98\sdk\com\oleaut\hello 里面有两个目录hello(ActiveX代码),另一个目录是hellctrl(C++测试代码)。 ActiveX Control在使用前,需要注册一下。注册文件需要修改一下exe和tlb文件的路径,必须使用绝对路径。注册以后即可使用。 还可以编写一个VB测试程序。 在VB6中点击菜单“工具”=... 阅读全文
posted @ 2009-08-22 23:55 Fan Zhang 阅读(208) 评论(0) 推荐(0)
摘要:[   uuid(F37C8060-4AD5-101B-B826-00DD01103DE1),              // LIBID_Hello   helpstring("Hello 2.0 Type Library"),... 阅读全文
posted @ 2009-08-22 22:52 Fan Zhang 阅读(361) 评论(0) 推荐(0)
摘要:封装了如下函数,很好用 GetBits GetColorTable GetMaxColorTableEntries GetPitch GetPixelAddress IsIndexed SetColorTable 阅读全文
posted @ 2009-08-21 23:31 Fan Zhang 阅读(285) 评论(0) 推荐(0)
摘要:#define STRICT#define WIN32_LEAN_AND_MEAN#define _WTL_USE_CSTRING #include <atlbase.h> // base ATL classes#include <atlapp.h> // base WTL classesextern CAppModule _Module; // WTL version o... 阅读全文
posted @ 2009-08-21 18:28 Fan Zhang 阅读(519) 评论(0) 推荐(0)
摘要:OLE文档对象来源自OLE2.0标准,并演化而来。 OLE1.0时候,嵌入的文档如果显示,必须谈出一个新窗口,然后内嵌文档显示在新窗口中。 OLE2.0时候,嵌入的文档可以显示在Container中,但是内嵌文档和Container的交互性很差。Container可以控制内嵌文档,但内嵌文档不能控制Container。 OLE Document Objects解决了上述问题,是用户感觉不到内... 阅读全文
posted @ 2009-08-21 15:11 Fan Zhang 阅读(321) 评论(0) 推荐(0)
摘要:如果在Word软件中使用Excel功能,那么对于Word来说就是Container Application,对于Excel来说就是Server Application。 Linking and Embedding的区别:这两种都是将Items存储在OLE文档中的方法。Linking就是一个链接,而Embedding就是嵌入。字面就可以看出区别。 In-Place Activation :在Co... 阅读全文
posted @ 2009-08-19 21:59 Fan Zhang 阅读(191) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2009-08-19 18:01 Fan Zhang 阅读(247) 评论(0) 推荐(0)
摘要:MIDL.exe将IDL文件编译成TLB文件,它是一个二进制文件。描述了接口信息,可用于VB等脚本语言使用。TLB文件可以作为资源嵌入DLL文件中。 阅读全文
posted @ 2009-08-18 11:29 Fan Zhang 阅读(295) 评论(0) 推荐(0)
摘要:BEGIN_MSG_MAP_EX宏可以使用MSG_WM_CREATE宏 而 BEGIN_MSG_MAP宏只能使用MESSAGE_HANDLER宏 阅读全文
posted @ 2009-08-17 14:23 Fan Zhang 阅读(707) 评论(0) 推荐(0)
摘要:双接口就是这个类实现了IDispatch接口和自己实现的借口IXXXX借口。同时让IXXXX继承自IDispatch接口。 这样保证IXXXX接口兼容于IDispatch。进一步说,返回的IDispatch和IXXXX指针是相同的。 对于编译型语言,可以通过#import "..\simple6.dll" no_namespace    如果需... 阅读全文
posted @ 2009-08-15 00:11 Fan Zhang 阅读(557) 评论(0) 推荐(0)
摘要:创建支持ActiveX控件的对话框时候,Create或DoModal函数会调用AtlAxCreateDialog或者AtlAxDialogBox函数。 会创建class为AtlAxWin的窗口类,作为ActiveX控件窗口的父窗口。WTL提供CAxWindow对AtlAxWin的窗口类进行封装,而CAxWindow可以与ActiveX控件进行通信。它提供QueryControl函数,可以查询接口... 阅读全文
posted @ 2009-08-14 17:52 Fan Zhang 阅读(374) 评论(0) 推荐(0)
摘要:><SCRIPT>alert("hello")</SCRIPT> 阅读全文
posted @ 2009-08-13 17:39 Fan Zhang 阅读(227) 评论(2) 推荐(0)
摘要:1.安装好默认的apache服务器2.将php的zip包解压缩到c:\php,并将这个目录加入path的环境变量3.修改httpd.conf,加入#================================================================ # For PHP 5 do something like this: LoadModule php5_module "C... 阅读全文
posted @ 2009-08-13 15:32 Fan Zhang 阅读(257) 评论(0) 推荐(0)
摘要:You can see the HTTP (hypertext transfer protocol) header from a web site using the standard Telnet program that comes with Windows. For example, to see the header from the root page of the Microsoft ... 阅读全文
posted @ 2009-08-12 13:30 Fan Zhang 阅读(219) 评论(0) 推荐(0)
摘要:wacom_features数组记录着各类wacom手写板型号的信息 其中第28个元素,和我这个手写板型号一样。且VendorID为USB_VENDOR_ID_WACOM,ProductID为0x65 其中函数wacom_graphire_irq是对手写板数据读取的重要函数。 x = data[2] | ((__u32)data[3] << 8); y = data[4] | ((_... 阅读全文
posted @ 2009-08-11 21:30 Fan Zhang 阅读(226) 评论(0) 推荐(0)
摘要:<SCRIPT LANGUAGE="JavaScript"> <!-- function escapeHTML(html) { var div = document.createElement('div'); var text = document.createTextNode(html); div.appendChild(text); return div.inner... 阅读全文
posted @ 2009-08-10 16:36 Fan Zhang 阅读(238) 评论(0) 推荐(0)
摘要:1.5节封装的概念以把“一个对象的外观(接口)同其实际工作方式(实现)分离开为基础”。C++的问题在于这条原则并没有应用到二进制层次上,一次C++类既是接口又是实现。接口类引入的间接性相当于在客户和对象实现之间强制加入了一道二进制防火墙。1.6节保证C++接口类所强加的二进制防火墙只使用与编译器无关的语言特征,着可以解决编译器/连接器的依赖性问题。 阅读全文
posted @ 2009-08-10 00:29 Fan Zhang 阅读(214) 评论(0) 推荐(0)
摘要:Make Your JavaScript Code More Readable Using the with() Statement The with() statement in JavaScript is identical to the With statement found in Visual Basic. Using with(), you can reduce object ref... 阅读全文
posted @ 2009-08-07 12:09 Fan Zhang 阅读(258) 评论(0) 推荐(0)
摘要:NameVirtualHost 211.99.3.108:80 <VirtualHost 211.99.3.108:80> ServerAdmin wangdsheng@sina.com DocumentRoot D:/root/chinaterrier/upload ServerName www.chinaterrier.com ErrorLog logs/chinaterrier.... 阅读全文
posted @ 2009-08-06 17:44 Fan Zhang 阅读(133) 评论(0) 推荐(0)
摘要:两个函数都是提供原子操作的函数。ExInterlockedXXXX需要自旋锁InterlockedXXXX不需要自旋锁 阅读全文
posted @ 2009-08-04 15:11 Fan Zhang 阅读(199) 评论(0) 推荐(0)