UserInfoHelp::userInUserGroup(curuserid(), "Admin") EmplTable::userId2EmplId(curuserid()); EmplTable::EmplId2Name(EmplId); System.Environment::get_Use... ...
分类:
其他好文 时间:
2017-04-25 16:42:14
阅读次数:
128
函数功能:创建线程 函数原型: HANDLE WINAPI CreateThread( LPSECURITY_ATTRIBUTES lpThreadAttributes, SIZE_T dwStackSize, LPTHREAD_START_ROUTINE lpStartAddress, LPVOI ...
分类:
其他好文 时间:
2017-04-15 21:33:26
阅读次数:
154
存放个自己写的获取网页源码,掌握了: 1.利用CreateOLEObject方式获取源码 2.自动判断网页格式编码 需要使用到的单元:Winapi.ActiveX,System.Win.ComObj,System.WideStrUtils 需要创建结构体:TResultWebHtml (用于存放返回 ...
DWORD WINAPI MyThreadProc (LPVOID lpParam){ somestruct* pN = (somestruct*)lpParam; // 将参数转为你的类型 ... return 0;}创建命令以及各个参数说明:HANDLE hThread = CreateThre ...
分类:
编程语言 时间:
2017-03-12 11:26:51
阅读次数:
268
其实类的静态函数就跟全局函数是一个样子的, 只是调用的时候要加下个类修饰符而已.至于为什么不能是非静态成员函数呢, 因为非静态成员函数都会在参数列表中加上一个this指针为为参数, 这样的话你写的线程函数就不符合调用规定了.比如 DWORD WINAPI ThreadFun(LPVOID); 是非静 ...
分类:
编程语言 时间:
2017-02-27 13:13:02
阅读次数:
286
unit Unit3; interface uses Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants, System.Classes, Vcl.Graphics, Vcl.Controls, Vcl.Forms, V... ...
分类:
其他好文 时间:
2017-02-20 13:06:31
阅读次数:
290
unit Form_Main; interface uses Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants, System.Classes, Vcl.Graphics, Vcl.Controls, Vcl.Form... ...
http://www.cnblogs.com/del/archive/2008/02/28/1085124.html 这是储存字符串的一组 API.通过 AddAtom 储存一个字符串, 返回一个 ID;GetAtomName 通过这个 ID 可返回储存的字符串;还可以用 FindAtom 查找、用 ...
[plain] view plain copy print? [plain] view plain copy print? [delphi] view plain copy print? unit Unit1; interface uses Winapi.Windows, Winapi.Messag ...