Results 1 to 3 of 3

Thread: Desk top Icon

  1. #1

    Thread Starter
    New Member
    Join Date
    May 2000
    Posts
    13
    'In declarations:
    Private Declare Function fCreateShellLink Lib "STKIT432.DLL" (ByVal lpstrFolderName As String, ByVal lpstrLinkName As String, ByVal lpstrLinkPath As String, ByVal lpstrLinkArgs As String) As Long
    'In code:
    fCreateShellLink "C:\windows\Desktop", "my program", filepath, ""
    --------------------------------------------------------------------------------

    I have had 2 people tell me to use this code to create a icon on the desk top But I can fugure it out still. I has to be something I am doing. Can some on help me here. Where does the code go. I am still very wet at this.
    Thanks

  2. #2
    Guest

    By reading the code, i'm pretty sure that this will work. If you haven't already done so, try the method below.

    Put the below code in a module

    'In declarations:
    Private Declare Function fCreateShellLink Lib "STKIT432.DLL" (ByVal lpstrFolderName As String, ByVal lpstrLinkName As String, ByVal lpstrLinkPath As String, ByVal lpstrLinkArgs As String) As Long



    Put this code on a CommandButton in the form.
    fCreateShellLink "C:\windows\Desktop", "my program", filepath, ""

  3. #3
    Addicted Member
    Join Date
    Jan 1999
    Posts
    239

    Create Shortcut

    If you are using VB5 or VB6 I doubt that the DLL from
    the VB4 SetupKit ("STKIT432.DLL) will accomplish the task.

    I have emailed you the code to do this.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width