|
-
Jun 11th, 2000, 09:23 PM
#1
Thread Starter
Hyperactive Member
right, if anyone can tell me how to do this, i'll be amazed, because i can't find anything about it anywhere...
how do i create a shortcut file from my program
it's got to be fairly simple, surely..?!?!?!
-
Jun 12th, 2000, 12:51 AM
#2
transcendental analytic
Code:
Declare Function fCreateShellLink Lib "STKIT432.DLL" (ByVal lpstrFolderName As String, ByVal lpstrLinkName As String, ByVal lpstrLinkPath As String, ByVal lpstrLinkArgs As String) As Long
'Usage:
fCreateShellLink "C:\windows\Desktop", "Link to my program", "C:\Path\Program.exe", ""
Use  
writing software in C++ is like driving rivets into steel beam with a toothpick.
writing haskell makes your life easier:
reverse (p (6*9)) where p x|x==0=""|True=chr (48+z): p y where (y,z)=divMod x 13
To throw away OOP for low level languages is myopia, to keep OOP is hyperopia. To throw away OOP for a high level language is insight.
-
Aug 31st, 2000, 01:28 PM
#3
New Member
This doesn't seem to work in VB5.
I've tried to use an absolute path as the first parameter to fCreateShellLink, but it just doesn't work. The only type of parameter that does work is one that is relative to the Startup directory. Do I need VB6 to make this work?
Originally posted by kedaman
Code:
Declare Function fCreateShellLink Lib "STKIT432.DLL" (ByVal lpstrFolderName As String, ByVal lpstrLinkName As String, ByVal lpstrLinkPath As String, ByVal lpstrLinkArgs As String) As Long
'Usage:
fCreateShellLink "C:\windows\Desktop", "Link to my program", "C:\Path\Program.exe", ""
-
Aug 31st, 2000, 01:35 PM
#4
Here is the API function to make it work in VB5:
Code:
Private Declare Function fCreateShellLink Lib "Vb5stkit.dll" (ByVal _
lpstrFolderName As String, ByVal lpstrLinkName As String, ByVal lpstrLinkPath As _
String, ByVal lpstrLinkArgs As String) As Long
-
Sep 1st, 2000, 01:00 AM
#5
transcendental analytic
That's odd because it works fine for me, i have vb5. I guess you would need to have STKIT432.DLL
Use  
writing software in C++ is like driving rivets into steel beam with a toothpick.
writing haskell makes your life easier:
reverse (p (6*9)) where p x|x==0=""|True=chr (48+z): p y where (y,z)=divMod x 13
To throw away OOP for low level languages is myopia, to keep OOP is hyperopia. To throw away OOP for a high level language is insight.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|