Results 1 to 3 of 3

Thread: ShellExecute problem

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Aug 2001
    Location
    London
    Posts
    31

    ShellExecute problem

    I started this thread in the normal discussion forum and it became apparent that this is an api problem with ShellExecute. It seems to work differently on different platforms such as NT/98/2000pro

    http://www.vbforums.com/showthread.php?s=&postid=562405

    Can somebody please suggest a solution.
    Thank you
    Why did I ever start learning VB?! I should have been happy with Java.

  2. #2
    PowerPoster
    Join Date
    Jul 1999
    Posts
    5,923
    How about this, a small change
    VB Code:
    1. Private Declare Function ShellExecute Lib "shell32.dll" Alias "ShellExecuteA" (ByVal hwnd As Long, ByVal lpszOp As String, ByVal lpszFile As String, ByVal lpszParams As String, ByVal LpszDir As String, ByVal FsShowCmd As Long) As Long
    2. Private Const SW_SHOWNORMAL = 1
    3.  
    4. Private Sub cmdSend_Click()
    5.  
    6. ShellExecute Me.hwnd, vbNullString, "mailto:[email protected]?Subject=Put subject here", vbNullString, "C:\", SW_SHOWNORMAL
    7.  
    8. End Sub

  3. #3

    Thread Starter
    Junior Member
    Join Date
    Aug 2001
    Location
    London
    Posts
    31
    still no luck. Is there another way to do this without using ShellExecute?
    Why did I ever start learning VB?! I should have been happy with Java.

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