How to Add Files to the Start|Documents Menu

Posted December 15th @ 6:49 pm by m3Rlin

Windows keeps track of the files you work with ands them to the Start|Documents menu. If you want to add documents to this menu from your program, just use the SHAddToRecentDocs() function. The function requires a PChar parameter but so you can use aways either typecast strings to PChars or use the StrPCopy() function.

uses ShlObj;

[...]

How to Download a File From the Internet

Posted December 15th @ 4:14 pm by m3Rlin

You can always use some component. But if you are just going to download there is no need to do this or to use ActiveX controls. Windows has the function you need already declared in the UrlMon.dll. To download a file to a local disk just use this code:
!!Note: This function is not described in [...]

« Previous EntriesNext Entries »