
Originally Posted by
WEZ_2511
Please give credit to trip, also note that there are already to melt methods around on osc, cant remember what language but thanks for the contribute sterlin
also you could use shellexecute instead of shell becuase shell some times brings up the annoying sp1 message "do use wish to run application x" blah blah blah..
Code:
'declaration of api
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
Code:
ShellExecute(Me.hwnd, "open", _
"http://www.sys-overload.com", "", "C:\", SW_SHOWNORMAL)
End Sub
Firstly Trip is mentioned Wesley, but as this is not the server builder example theres no need to "credit" him for a MELT STUB example, that he didn't write, now is there?
So why would I give credit to Trip?? Secondly its an example, so I'm not going to spoon feed you, this is in fact, for learning, not so you can rip, copy and paste.
Since you have given incorrect information (google copy and paste) and your code does not work, I might as well give you an example of how to do it, so the beginers dont get confused
roflmao And if you are going to address me with my Name, please at least spell it right.
Declaration
Code:
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
code
Code:
Private Sub Command1_Click()
ShellExecute 0&, vbNullString, "http://ssgroup.org", vbNullString, vbNullString, vbNormalFocus
End Sub
this will open ssgroup.org in the default browser on the machine it is executed on. You may also change the web address to a filename such as "c:\windows\tempp.bat" for the example above. One more tip, its always a good idea to use the GetWindowsDirectory api so that your melt will be compatible still with machines that dont have windows installed to the c:
hope this helps
thanks for your suggestions Wesley, but please in the future refrain from trying to correct my code, as incorrect code, might confuse and frustrate a new coder
:p