
Delphi
whisht
十年
展开
-
Delphi创建ActiveX控件,实现安全接口及无界面代码
Delphi创建OCX控件非常的方便,但IE调用时弹出的安全认证非常麻烦,有时OCX也不需要界面,IE调用时需要隐藏,非常不方便。在DELPHI中创建OCX实现安全接口和创建事件中修改部分代码实现安全接口继承:IObjectSafety重载方法: function GetInterfaceSafetyOptions(const IID: TIID; pdwSupportedOptions, //安全接口 pdwEnabledOptions: PDWORD)原创 2010-11-29 13:39:00 · 3241 阅读 · 0 评论 -
delphi ADOQuery '尚未调用 CoInitialize。
usesActiveX;initialization CoInitialize(nil);Finalization CoUninitialize();原创 2012-07-19 16:16:52 · 1556 阅读 · 0 评论 -
Delphi 取JPG图片内的Exif信息
//取Exif信息function GetExifItem(GPImage:TGPImage;ItemID: PROPID): String;var PropSize: UINT; PropItem: PPropertyItem; S:PChar; S1,S2:String;begin PropSize := GPImage.GetPropertyItemSize(ItemID); i原创 2012-01-07 22:22:59 · 3113 阅读 · 0 评论 -
UltraEdit支持delphi语法高亮
打开安装目录下的WORDFILE.TXT,加入/L14"Delphi" Nocase Line Comment = // Block Comment On = { Block Comment On Alt = (* Block Comment Off = } Block Comment Off Alt = *) Escape Char = ?String Chars = ' File Exte原创 2011-11-20 19:00:31 · 1152 阅读 · 0 评论 -
DELPHI实现键盘勾子
//调用键盘钩子,屏蔽功能键function keyHookProc(nCode: Integer; LWParam: WPARAM; LLParam: LPARAM): LRESULT; stdcall; var hHk :HHOOK; //创建勾子hHk:= SetWindowsHookEx(13, @keyHookProc, HInstance, 0);functi原创 2011-11-16 21:23:29 · 1367 阅读 · 0 评论 -
隐藏显示任务栏
function SetTaskBar(LVisible: Boolean): Boolean; //隐藏-显示任务条var h: THandle;begin if LVisible then begin h:=FindWindow('Shell_TrayWnd',nil); ShowWindow(h, SW_SHOW); //隐藏任务条 end else原创 2011-11-16 21:19:34 · 452 阅读 · 0 评论 -
VC Delphi WM_COPYDATA 消息
VC Unicode项目发送消息DELPHI代码var wData: String; h: HWND; cds: TCopyDataStruct;begin wData:= '1234567890'+ Chr(0); cds.dwData:= 0; cds.cbData:= Length(wData); cds.lpData:= PWideCh原创 2011-10-24 14:24:40 · 1371 阅读 · 0 评论 -
DELPHI OCX控制与页面通过javascript交互
控件测试 串口原创 2011-03-04 16:06:00 · 2243 阅读 · 0 评论 -
Delphi操作AVI视频文件单元
unit AviWriter; ///////////////////////////////////////////////////////////////////////////// // // // AviWriter -- a component to create rudimentary AVI files原创 2011-01-27 09:26:00 · 1305 阅读 · 0 评论 -
Delphi操作AVI视频文件单元
<br />unit AviWriter; ///////////////////////////////////////////////////////////////////////////// // // // AviWriter -- a component to create rudimentary AVI files原创 2011-01-27 09:26:00 · 3244 阅读 · 0 评论 -
Delphi SHMultiFileProperties查看多个文件属性
library Properties;{ Important note about DLL memory management: ShareMem must be the first unit in your library's USES clause AND your project's (select Project-View Source) USES clause if your原创 2013-05-23 13:23:20 · 1065 阅读 · 0 评论