delphi-7

How to Schedule a task programmatically

这一生的挚爱 提交于 2021-02-06 04:35:52
问题 How can I schedule a task using delphi 7 like Google updater? I'm not using the registry because it gets detected by Kaspersky antivirus as a false alarm. Anything I add in the registry as a start-up item gets detected as a trojan so I decided to use task schedule 回答1: The following piece of code shows how to delete and create the task which will run the application at system startup with system privileges. It uses the following command line: However the Task Scheduler since Windows Vista

How to use .sys driver functions in delphi

依然范特西╮ 提交于 2021-02-05 09:08:01
问题 I have a specific driver(a firewall driver) which i managed to load with delphi but i dont know how to call his function inside my program. The specification for this functions on driver are like folows : Firewall functions can be called with DeviceIoControl (DDoSflt) IoControl codes (needed for DeviceIoControl) are as following: 0x2220c0 = IOCTL_START Input: none Output: none After loading the driver, call this function to install firewall hook. 0x2220c4 = IOCTL_STOP Input: none Output: none

How to use .sys driver functions in delphi

情到浓时终转凉″ 提交于 2021-02-05 09:05:26
问题 I have a specific driver(a firewall driver) which i managed to load with delphi but i dont know how to call his function inside my program. The specification for this functions on driver are like folows : Firewall functions can be called with DeviceIoControl (DDoSflt) IoControl codes (needed for DeviceIoControl) are as following: 0x2220c0 = IOCTL_START Input: none Output: none After loading the driver, call this function to install firewall hook. 0x2220c4 = IOCTL_STOP Input: none Output: none

Delphi 7 Indy IdFTP did'nt send/receive data

痞子三分冷 提交于 2021-01-28 07:01:55
问题 2 years ago, I wrote a simple client/server program for someone using Delphi 7 and Indy to send and receive some data through the Internet. I used TIdFTP to connect to their server and get and put data on it. It worked well for 2 years. Today, they have opened another office in another city, and they want to copy the program to their new office computer, but the program doesn't work there. The program connects successfully, but can't read the directory list, or put or get data. If it tries to

How to save a memo as unicode

霸气de小男生 提交于 2021-01-28 03:58:17
问题 I am using Delphi 7, How can I save a Memo as a Unicode text file, I find some example for save it as UTF-8 text file, but I need an example for saving file as unicode. Thanks for any help 回答1: You need to use a control that supports Unicode. Delphi 7 TMemo does not. Which means that your real problem is not so much saving the content, but admitting the content in the first place. You should deal with this by switching to the TNT Unicode components. Once you start using the TNT Unicode

How to save a memo as unicode

对着背影说爱祢 提交于 2021-01-28 03:43:54
问题 I am using Delphi 7, How can I save a Memo as a Unicode text file, I find some example for save it as UTF-8 text file, but I need an example for saving file as unicode. Thanks for any help 回答1: You need to use a control that supports Unicode. Delphi 7 TMemo does not. Which means that your real problem is not so much saving the content, but admitting the content in the first place. You should deal with this by switching to the TNT Unicode components. Once you start using the TNT Unicode