var hAppMutex: THandle; //声明互斥变量begin hAppMutex := CreateMutex(nil, false,'WMS');// WMS应用程序名称 if ((hAppMutex <> 0) and (GetLastError() = ERROR_ALREADY ...
应用TDataBase控件把DataBase的DriveName设为STANDARD,然后设置DataBase的Params中设置PATH=*.db文件地点目录DEFAULT DRIVER=PARADOXUSER=用户名PASSWORD=口令再为DataBase的DatabaseName定义一个名字 ...
分类:
其他好文 时间:
2017-04-24 12:13:19
阅读次数:
249
Background The knight is getting bored of seeing the same black and white squares again and again and has decided to make a journey around the world. ...
分类:
其他好文 时间:
2017-04-23 18:14:17
阅读次数:
269
在npm官网找到了:微信官方 js-sdk CommonJS 版https://www.npmjs.com/package/weixin-js-sdk 步骤一:引入JS文件在需要调用JS接口的页面引入如下JS文件,(支持https):http://res.wx.qq.com/open/js/jwei ...
分类:
微信 时间:
2017-04-21 18:55:34
阅读次数:
2814
Implement next permutation, which rearranges numbers into the lexicographically next greater permutation of numbers. If such arrangement is not possib ...
分类:
编程语言 时间:
2017-04-18 21:49:53
阅读次数:
186
一、GBrowse概述 Generic Genome Browser(GBrowse)是将基因的数据以网页的形式进行动态展示。其特性有:可以概括和细致地看基因的相关信息可以滚动,放大,居中可以使用预置或自己的数据。。。 GBrowse是一个开源软件,以perl为基础的,GBrowse2.x可以通过C... ...
分类:
其他好文 时间:
2017-04-18 09:37:30
阅读次数:
204
今天研究了一下oracle 交集和并集,下面把我经过查找资料,测试后,整理如下: 1.并集 表1: insert into student1 values(1,'学生1'); insert into student1 values(1,'学生2'); insert into student1 val ...
分类:
数据库 时间:
2017-04-16 19:31:36
阅读次数:
231
uses dateutils; //判断给定日期的天数 label1.caption := inttostr(DaysInAMonth(yearof(StrToDate(Trim(Edit_riqi.Text))),monthof(StrToDate(Trim(Edit_riqi.Text))) ) ...
在Delphi中创建线程,请一定使用BeginThread()代替CreateThread()创建线程! 如果直接使用Win32的API函数CreateThread()创建多个线程,也是可以创建的。但是,你应该明白,在每个线程中动态分配和销毁内存块,是需要同步保护的。Delphi语言中有一个在使用多 ...
分类:
编程语言 时间:
2017-04-15 00:16:44
阅读次数:
230
当您使用完对象后,您应该及时撤销它,以便把这个对象占用的内存释放出来。您可以通过调用一个注销方法来撤销您的对象,它会释放分配给这个对象的内存。 Delphi的注销方法有两个:Destroy和Free。Delphi建议使用Free,因为它比Destroy更为安全,同时调用Free会生成效率更高的代码。 ...