|
-
Jul 2nd, 2000, 02:13 AM
#1
I have the following code inserted in my vb6 program
Option Explicit
'NOTE:
'In Visual Basic 6.0 = Vb6stkit.dll
Private Declare Function fCreateShellLink Lib "Vb6STKIT.dll" (ByVal lpstrFolderName As String, ByVal lpstrLinkName As String, ByVal lpstrLinkPath As String, ByVal lpstrLinkArgs As String) As Long
Private Sub cmdRegular_Shortcut_Click()
Call fCreateShellLink("\Desktop", "Shortcut to Calculator", "c:\windows\calc.exe", "")
End Sub
An error occurs at the call fCreateShellLink. VB stated "Bad dll calling convention". Any ideas??? Thanks!
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
|