while using the last code in my project and run i got the message
Private Declare Function ShellExecute Lib "shell32.dll" Alias "ShellExecuteA" _
(ByVal hWnd As Long, ByVal lpOperation As String, ByVal lpFile As String, ByVal lpParameters As String, _
ByVal lpDirectory As String, _
ByVal nShowCmd As Long) As Long
-- i added this option in the general declarations option
Private Sub mnuHelpGeneral_Click()
Dim iResult As Double
Dim iPath As String
Dim filename
filename = App.Path & "\help.pdf"
ShowFileDefault filename, Me.hWnd
End Sub
-- i Added this in the in the help click option
Private Function ShowFileDefault(FilePath As String, ownerHwnd As Long) As Boolean
Dim dummy As Long
'open the file using the default Editor or viewer.
dummy = ShellExecute(ownerHwnd, "Open", FilePath & Chr$(0), Chr$(0), _
Left$(FilePath, InStr(FilePath, "\")), 0)
ShowFileDefault = dummy
End Function
-- i added this in the bottom of the code
but while i run the source and got error messages
ByRef argument type mismatch
please help me to solve this problem