Make Homepage | Add To Favorites | Print Page | Submit News | Feedback | Contact | 

Your Technical Computer Information Resource!  
     

  Visual Basic - fCreateShellLink different in VB5 and VB6  
TACKtech Corp. > Articles > Software > Programming

Visual Basic - fCreateShellLink different in VB5 and VB6 (TTID #43)

Author: Kevin   Views: 16,089 /  Created: January 1, 2000
Visual Basic 5 and 6 do not call fCreateShellLink in the same fashion.

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


Private Declare Function fCreateShellLink Lib "vb6stkit.DLL" ( _
    ByVal lpstrFolderName As String, _
    ByVal lpstrLinkName As String, _
    ByVal lpstrLinkPath As String, _
    ByVal lpstrLinkArgs As String, _
    ByVal fPrivate As Long, _
    ByVal sParent As String) As Long


' *** CODE TO PLACE ICON ON DESKTOP BEGINS
fPrivate = True
sParent = gsPROGMENUKEY
lReturn = fCreateShellLink("..\..\Desktop", "My Program", "C:\Program Files\My Program\My Program.exe", "", fPrivate, sParent)
' *** CODE TO PLACE ICON ON DESKTOP ENDS

Your Name:


Your E-Mail: (required)


Friend's E-Mail: (required)




View Our World Wide Web Customer Privacy Policy
  Featured Articles  
  Quick Links  
  Top Affiliates  
........