procedure TForm1.Button8Click(Sender: TObject);
var
sr: TSearchRec;
aTempPath: String;
begin
aTempPath :=’D:\delphi\printer\*.*’; //注意后面的*。*一定要加
if FindFirst(aTempPath, faAnyFile, sr) = 0 then
begin
repeat
if (sr.Attr and faArchive) = sr.Attr then
...阅读全文
这里,我向大家介绍在Delphi中如何实现文件时间的获取和修改方法。Delphi中
提供了很完备的Windows API函数的调用接口,可以方便的进行高级Windows编程
。利用Delphi中的FindFirst函数可以得到一个文件的属性记录,该记录中的Fin
dData域中就记载了详细的文件时间信息。然而遗憾的是,FindData中的时间信息
是不能直接得...阅读全文
unit Unit1;
interface
uses
Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs, WinSpool,
StdCtrls;
var
pi2:PRINTER_INFO_2;
pno:PRINTER_NOTIFY_OPTIONS;
pinfo:PPrinterNotifyInfo;
//pinty:pPrinterNotifyOptionsType;
hResult:THandle;
pdwChange:DWORD;
...阅读全文
如引用由 Win32API, ” 打印机 ” 由打印机驱动程序, 打印队列, 和输入/输出路径到物理打印机。 操作系统将物理打印机视为只打印作业由生成并传递系统 ” 打印机, ” 作为打印机本文其余部分中引用的目标。
最明显一部分打印机是打印队列。 它是由打印管理器或样式 Windows 95 用户界面中打印机文...阅读全文
定义一个异常处理类 ,把应用程序为处理的异常全部让它来处理。
TMyexception =class
public
procedure AppException(Sender: TObject; E: Exception);
end;
procedure TMyexception.AppException(Sender: TObject; E: Exception);
begin
if pos(‘ora-’,LowerCase(e.Message)) =1 then
remi...阅读全文
手把手教会你怎么开发apache的模块,使用delphi原来这样简单就搞定。
Introduction
Choosing Apache 1 or Apache 2
Installing Apache
Controlling Apache
Writing A Shared Module
Using The Shared Module
Debugging Shared Modules
About Brian Long
If you find this article useful then ple...阅读全文
Help to development a Web Services that run unter Apache 2.2.3 using D7
All posts: borland.public.delphi.webservices.soap
Source: borland.public.delphi.webservices.soap
>Apply the Dr Bob « unofficial fix » (see
>http://www.drbob42.com/delphi7/Apache2040.htm)
>
>and modify :
>
>MODULE_MAGIC_COOK...阅读全文
The following information was posted in the Borland newsgroups, and provided here until it has found a permanent place on the Borland Developer’s Network website. Dr.Bob’s ** Book Top 3 ** 2003:
1. Delphi 6 Developer’s Guide
2. C++Builder 6 Developer’s Guide
3. Kyl...阅读全文
Delphi7支持五种部署方式来开发Webservice,分别介绍:
Isapi是在IIS下运行;
CGI是可以在IIS和apache下运行;我自己只在iis下部署了,没试apache。
Apache 1.x需要部署到apache1的版本下;
Apache2.x需要部署到apache2;
Debugger 是可以在方便Delphi中继承调试的;
以上可以在编写完业务代码后,再根据部署环境的不同,...阅读全文
主要是没有先打开这个父窗体,虽然提示错误,不影响运行,但要修改界面时很不方便。
解决办法如下:
第一种:先打开继承的父窗体;
第二种:把父窗体加入到当前项目中。
阅读全文