Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
VFP50 - Icon on Desktop/Start up
Message
From
27/08/1998 10:27:00
 
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00129680
Message ID:
00130512
Views:
33
Hello George,

I have been able to create a short cut on my desktop but I can't
set the default working directory for the executable.
I have tried several strings for the LCPATH variable and all I get
back is the value of false for the LLRESULT variable.

The questions are:
1. What am I missing that I can't get a value for the llRESULT
variable?
2. Since I will be installing using the setup wizard that comes with
VFP 5.0, how do you handle the situation when the user changes the
executable installation directory?

Do you have a sample code?

Thank you again and here is the code I have to get the working dir
for my exe.

******************************************************************
DECLARE INTEGER SetLinkWorkDir IN LNKFILES.DLL;
INTEGER hWnd, STRING @lpszLinkName, STRING @lpszPath

lclinkfile = 'C:\WINDOWS\DESKTOP\My Executable Link.LNK'
lcpath = 'C:\PROJECTS\MSCONLINE5\'
llresult = (SetLinkWorkDir(0, @lclinkfile, @lcpath) = 0)
******************************************************************

>>Thank you George, I'll be playing with your DLL today.
>>
>Hi Morys,
>
>Please feel free to ask any questions, or give me any other feedback.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform