Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Creating a .lnk file
Message
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00203429
Message ID:
00203472
Views:
14
>Is there an API call or some C++ function that can be called to create a windows .lnk file (shortcut) from VFP. I want to be able to read a dbf file containing exe information and dynamically create a shortcut to the exe on the windows desktop.
>
>Rick Napolitan
>
>nappy@twd.net.com

Hi Rick,

Take a look at my lnkfiles.dll file from the UT download section (Win32 and other APIs). It comes with a help file that gives the declarations and calls using VFP syntax so you can just copy the examples from the file and paste them into your program.

Just one note, there's some errata in the documentation as to the codes returned by several of the functions that set information. I haven't gotten around to correcting it as of yet. If you get an error code, check the actual file to see whether or not you received an erroneous error code.

hth,
George

Ubi caritas et amor, deus ibi est
Previous
Reply
Map
View

Click here to load this message in the networking platform