`
lujar
  • 浏览: 496878 次
  • 性别: Icon_minigender_1
  • 来自: 杭州
社区版块
存档分类
最新评论
文章列表
今天做了一个小软件,总结了一些经验与大家共享。源代码过一段时间我可能公布,希望与大家共同学习。1、用sender的方式增强代码的健壮性procedure TMainfrm.CBAutoRunClick(Sender: TObject);Const  SIGNINREGISTRY = 'WebSuction';begin  if (Sender as TCheckBox).Checked then  //用sender as...的方式可适应                                         //性更强     AddToAutoRun(Application.Exe ...
“绑架窗体”:顾名思义,就是将其它应用程序甚至系统程序的窗体活生生地拖进本程序的窗体内。这种未征得其它程序同意的强行“绑架”行为在某些场合下却能发挥出非常独特的作用。本文将讨论“绑架”窗体的技术及应用,并给出了一个完整的“强盗”程序的例子。从技术上讲,为了实现“绑架”,“强盗”程序中必须要有一个 MDIForm对象。 实现“绑架”的第二个条件,是必须知道被“绑架”窗体的句柄。做到这一点并不难。比如,当鼠标在屏幕上滑动时,我们可以用 API函数GetCursorPos来获得鼠标指针的当前位置坐标,然后用另一个 API函数 WindowFromPoint来获得指定点窗口的句柄。或者使用FindWi ...
1 窗体建立的时机问题由于窗体属于比较占系统内存的对象,所以在应用程序中何时建立窗体就变得比较重要。窗体的建立时机有一下几种:(1)、在主窗体建立时自动建立窗体(2)、在需要的时候才建立窗体,然后窗体关闭时 ...
an I use Indy in my shareware/commercial applications? 我能在共享软件或商业软件中使用Indy组件吗?Yes, you may use Indy in your commercial or shareware application if you follow the Indy license. We are aware of several commercial programs and even a commercial component set that uses Indy. 可以,只要您遵守Indy组件的协议,您就能在您的商业软件或 ...
Connection Closed Gracefully 温和的关闭连接Many Indy users are annoyed by the EIdConnClosedGracefully exception that is raised with Indy servers, especially the HTTP and other servers. EIdConnClosedGracefully is an exception signaling that the connection has been closed by the other side inten ...
How to Convert a String of Integers into an Array of Byte如何将integer串转化成byte数组The best solution is to dynamically create an array of byte that has length equal to that of the string. Once you have your array you can fill the array with the values from the string, however there is some offset since the ...
Global site tag (gtag.js) - Google Analytics