<?xml version="1.0" encoding="utf-8" ?><rss version="2.0"><channel><title><![CDATA[Johnson的专栏]]></title><description><![CDATA[]]></description><link>https://blog.youkuaiyun.com/51357</link><language>zh-cn</language><generator>https://blog.youkuaiyun.com/</generator><copyright><![CDATA[Copyright &copy; 51357]]></copyright><item><title><![CDATA[使用ScriptControl令程序增加脚本功能]]></title><link>https://blog.youkuaiyun.com/51357/article/details/2802692</link><guid>https://blog.youkuaiyun.com/51357/article/details/2802692</guid><author>51357</author><pubDate>Wed, 20 Aug 2008 17:05:00 +0800</pubDate><description><![CDATA[1. 导入Microsoft ScriptControl到ActiveX2. 实现一个自定义的对象IMyObject(Unit2)3. 使用(Unit1)，可用使用下面的脚本：    MyObject.ShowMsg("MyObject hello");    Count = 1000;    AddCount();    ShowMsg("Count=" + Count);    IE.Navi]]></description><category></category></item><item><title><![CDATA[bmp文件格式]]></title><link>https://blog.youkuaiyun.com/51357/article/details/1777281</link><guid>https://blog.youkuaiyun.com/51357/article/details/1777281</guid><author>51357</author><pubDate>Sat, 08 Sep 2007 15:28:00 +0800</pubDate><description><![CDATA[一个常用的bmp文件内容由以下结构组成:BITMAPFILEHEADER + BITMAPINFO + 数据typedef struct tagBITMAPFILEHEADER {   WORD    bfType;   DWORD   bfSize;   WORD    bfReserved1;   WORD    bfReserved2;   DWORD   bfOffBits; } ]]></description><category></category></item><item><title><![CDATA[学习ie5.5的Element Behaviors笔记]]></title><link>https://blog.youkuaiyun.com/51357/article/details/1761884</link><guid>https://blog.youkuaiyun.com/51357/article/details/1761884</guid><author>51357</author><pubDate>Tue, 28 Aug 2007 12:31:00 +0800</pubDate><description><![CDATA[Element Behaviors is HTML component.    be written in script using an HTC file, or it can be implemented with a binary by using ATL technoligic.分两种:                        attached behavio]]></description><category></category></item><item><title><![CDATA[TActiveForm遇到的焦点问题,导致Key/MouseWheel事件无法接收]]></title><link>https://blog.youkuaiyun.com/51357/article/details/1746939</link><guid>https://blog.youkuaiyun.com/51357/article/details/1746939</guid><author>51357</author><pubDate>Thu, 16 Aug 2007 18:18:00 +0800</pubDate><description><![CDATA[procedure TClientX.ActiveFormKeyDown(Sender: TObject; var Key: Word;  Shift: TShiftState);begin  ShowMessage(k= +Char(Key));  // SetFocus; end;上面的对话框只是显示一次,分析到原因:因为对话框显示出来后,Focus已经转到IE:Shell D]]></description><category></category></item><item><title><![CDATA[ASP中要求IE不要缓冲网页]]></title><link>https://blog.youkuaiyun.com/51357/article/details/1703355</link><guid>https://blog.youkuaiyun.com/51357/article/details/1703355</guid><author>51357</author><pubDate>Mon, 23 Jul 2007 17:56:00 +0800</pubDate><description><![CDATA[Response.CacheControl = "no-cache"Call response.addHeader("Cache-Control", "no-cache") %> ]]></description><category></category></item><item><title><![CDATA[一个控制台的调试类]]></title><link>https://blog.youkuaiyun.com/51357/article/details/1670968</link><guid>https://blog.youkuaiyun.com/51357/article/details/1670968</guid><author>51357</author><pubDate>Fri, 29 Jun 2007 00:43:00 +0800</pubDate><description><![CDATA[type  TDbgConsole = class  private    m_hConsole:THandle;  public    constructor Create;    destructor Destroy;override;    procedure write(const str: string); overload;    procedure Write(const Forma]]></description><category></category></item><item><title><![CDATA[Delphi控制台的Window程序]]></title><link>https://blog.youkuaiyun.com/51357/article/details/1670967</link><guid>https://blog.youkuaiyun.com/51357/article/details/1670967</guid><author>51357</author><pubDate>Fri, 29 Jun 2007 00:38:00 +0800</pubDate><description><![CDATA[在写后台的程序时，一般想要dos窗口的输出，可以观察错误信息和实时监控。但又想可以拥有Form的功能。实现方法：program Project2;{$APPTYPE CONSOLE}uses  SysUtils, Windows,  Forms,    Unit1 in Unit1.pas {Form1};begin    Application.Initialize;    ]]></description><category></category></item><item><title><![CDATA[捕捉网页的windowClose事件，并调用注销登录页面]]></title><link>https://blog.youkuaiyun.com/51357/article/details/1561448</link><guid>https://blog.youkuaiyun.com/51357/article/details/1561448</guid><author>51357</author><pubDate>Thu, 12 Apr 2007 02:09:00 +0800</pubDate><description><![CDATA[ New Document function getUrl(url){  var result = null; var request = false; if (window.XMLHttpRequest)  {    request = new XMLHttpRequest(); } else if (window.ActiveXObject)  {    request = n]]></description><category></category></item><item><title><![CDATA[对已经存在的TCP系统进行登录验证]]></title><link>https://blog.youkuaiyun.com/51357/article/details/1547929</link><guid>https://blog.youkuaiyun.com/51357/article/details/1547929</guid><author>51357</author><pubDate>Sat, 31 Mar 2007 23:01:00 +0800</pubDate><description><![CDATA[要求：使用Media Service作为VOD server，点播流程： WMP - > WMS由于登录帐号保存在数据库，要实现自己的验证机制，需要在WMS前面加上Socket代理，检查URL中包含的SessionKey，验证流程：WMP -> Proxy -> WMS主要是实现一个代理，利用Delphi本身带的控件IdMappedPortTCP很容易就实现了。unit frm]]></description><category></category></item><item><title><![CDATA[MediaPlayer ActiveX访问自定义的URL协议时问题]]></title><link>https://blog.youkuaiyun.com/51357/article/details/1540938</link><guid>https://blog.youkuaiyun.com/51357/article/details/1540938</guid><author>51357</author><pubDate>Sun, 25 Mar 2007 23:58:00 +0800</pubDate><description><![CDATA[问题：假如用MediaPlayer要访问类似的 abc://host/xxx 自定义的流媒体时，会出现一个提示，按确定可以正常。如用MediaPlayer ActiveX访问时，则不会出现提示，而且不能播放。解决：安装软件时自动往注册表写：HKEY_CURRENT_USER/Software/Microsoft/MediaPlayer/Player/Schemes/ abcRuntim]]></description><category></category></item><item><title><![CDATA[HTTP Streaming例子: AsfRecorder.c代码]]></title><link>https://blog.youkuaiyun.com/51357/article/details/1516278</link><guid>https://blog.youkuaiyun.com/51357/article/details/1516278</guid><author>51357</author><pubDate>Tue, 27 Feb 2007 19:56:00 +0800</pubDate><description><![CDATA[ AsfRecorder.c 研究 v1.1 开源项目， 代码来自： http://sourceforge.net/projects/asfrecorder/主要实现下载http stream file /* The core routine for ASF download/extraction. */ int collectdata(int headeron]]></description><category></category></item><item><title><![CDATA[HTTP Streaming protocol 分析笔记]]></title><link>https://blog.youkuaiyun.com/51357/article/details/1516268</link><guid>https://blog.youkuaiyun.com/51357/article/details/1516268</guid><author>51357</author><pubDate>Tue, 27 Feb 2007 19:38:00 +0800</pubDate><description><![CDATA[HTTP Streaming protocol 分析笔记 Windows Media service提供mms:// 和http:// 协议进行音视频流播放。由于微软没有公开以上协议的技术细节，很难对流进行下载保存。http相对简单，以下对其进行抓包分析。 mms/http/rstp协议文档可参考http://sdp.ppona.com    HTTP交互过程：]]></description><category></category></item><item><title><![CDATA[进程间通信方法：接口Variant封装包参数传递]]></title><link>https://blog.youkuaiyun.com/51357/article/details/1495846</link><guid>https://blog.youkuaiyun.com/51357/article/details/1495846</guid><author>51357</author><pubDate>Sat, 27 Jan 2007 22:45:00 +0800</pubDate><description><![CDATA[  利用接口技术进行进程通信，由于是跨进程，指针是不能传递的，COM提供了Variant类型的参数传递方式 。如：进程P1把数据放在Var中， 调用进程2 P2.SetData(VARIANT Var)进行传送时，系统会进程1的Var数据在进程2的内存空间copy一份一模一样的数据，然后才调用真正的SetData。方便操作Variant的类CVariantBuffer.h]]></description><category></category></item><item><title><![CDATA[SafeArray 2 (转帖)]]></title><link>https://blog.youkuaiyun.com/51357/article/details/1495293</link><guid>https://blog.youkuaiyun.com/51357/article/details/1495293</guid><author>51357</author><pubDate>Fri, 26 Jan 2007 23:47:00 +0800</pubDate><description><![CDATA[在COM中使用数组参数-SafeArray关键字：DCOM、数组、自定义类型、Marshal、SafeArray、ICollection1       使用SafeArraySafeArray是VB中的数组存储方式。通过SafeArray，可以在VC++和VB间相互调用。SafeArray也是Automation中的标准数组存储方式。1.1      SafeArray处理函数]]></description><category></category></item><item><title><![CDATA[SafeArray (转贴)]]></title><link>https://blog.youkuaiyun.com/51357/article/details/1495275</link><guid>https://blog.youkuaiyun.com/51357/article/details/1495275</guid><author>51357</author><pubDate>Fri, 26 Jan 2007 23:12:00 +0800</pubDate><description><![CDATA[学会使用SafeArray也是 很重要的，因为在ADO编程中经常要用。它的主要目的是用于automation中的数组型参数的传递。因为在网络环境中，数组是不能直接传递的，而必须 将其包装成SafeArray。实质上SafeArray就是将通常的数组增加一个描述符，说明其维数、长度、边界、元素类型等信息。SafeArray 也并不单独使用，而是将其再包装到VARIANT类型的变量中，然后才作为参]]></description><category></category></item><item><title><![CDATA[学会使用SafeArray     选择自 laiyiling 的 Blog]]></title><link>https://blog.youkuaiyun.com/51357/article/details/1495267</link><guid>https://blog.youkuaiyun.com/51357/article/details/1495267</guid><author>51357</author><pubDate>Fri, 26 Jan 2007 22:55:00 +0800</pubDate><description><![CDATA[学会使用SafeArray也是 很重要的，因为在ADO编程中经常要用。它的主要目的是用于automation中的数组型参数的传递。因为在网络环境中，数组是不能直接传递的，而必须 将其包装成SafeArray。实质上SafeArray就是将通常的数组增加一个描述符，说明其维数、长度、边界、元素类型等信息。SafeArray 也并不单独使用，而是将其再包装到VARIANT类型的变量中，然后才作为参]]></description><category></category></item><item><title><![CDATA[GridView 和DataGrid区别]]></title><link>https://blog.youkuaiyun.com/51357/article/details/1480599</link><guid>https://blog.youkuaiyun.com/51357/article/details/1480599</guid><author>51357</author><pubDate>Thu, 11 Jan 2007 22:12:00 +0800</pubDate><description><![CDATA[一、GridView和DataGrid的异同GridView 是 DataGrid的后继控件，在.net framework 2 中，虽然还存在DataGrid，但是GridView已经走上了历史的前台，取代DataGrid的趋势已是势不可挡。GridView和 DataGrid功能相似，都是在web页面中显示数据源中的数据，将数据源中的一行数据，也就是一条记录，显示为在web页面上输出表]]></description><category></category></item><item><title><![CDATA[asp.net 技巧收集]]></title><link>https://blog.youkuaiyun.com/51357/article/details/1476859</link><guid>https://blog.youkuaiyun.com/51357/article/details/1476859</guid><author>51357</author><pubDate>Mon, 08 Jan 2007 11:07:00 +0800</pubDate><description><![CDATA[ 		vs2005常用快捷键  	调试快捷键F6: 生成解决方案Ctrl+F6: 生成当前项目F7: 查看代码Shift+F7: 查看窗体设计器F5: 启动调试Ctrl+F5: 开始执行(不调试)Shift+F5: 停止调试Ctrl+Shift+F5: 重启调试F9: 切换断点Ctrl+F9: 启用/停止断点Ctrl+Shift+F9: 删除全部断点F10: 逐过程Ctrl+F10: ]]></description><category></category></item><item><title><![CDATA[delphi关于线程安全问题]]></title><link>https://blog.youkuaiyun.com/51357/article/details/1441203</link><guid>https://blog.youkuaiyun.com/51357/article/details/1441203</guid><author>51357</author><pubDate>Wed, 13 Dec 2006 12:49:00 +0800</pubDate><description><![CDATA[TThread提供了几种同步的方法： TThread = class   protected      procedure Synchronize(Method: TThreadMethod); overload; // 在继承中调用同步   public     class procedure Synchronize(AThread: TThread; AMethod: TThreadM]]></description><category></category></item><item><title><![CDATA[The first winx project]]></title><link>https://blog.youkuaiyun.com/51357/article/details/1437701</link><guid>https://blog.youkuaiyun.com/51357/article/details/1437701</guid><author>51357</author><pubDate>Sun, 10 Dec 2006 22:15:00 +0800</pubDate><description><![CDATA[用VS2005建立的第一个项目，一定要以win32 empty project方式，否则编译会出错手工加IDD_FORMVIEW的dialog resource#include #include "resource.h"class CHello : public winx::ModalDialog{};int WINAPI WinMain(__in HINSTANCE hInstance, __i]]></description><category></category></item></channel></rss>