|
-
Jul 27th, 2000, 04:52 AM
#1
Thread Starter
Lively Member
I execute the following code from W98 ;
code:
Private Sub Picture1_DblClick()
Dim Keyword As Variant
Keyword = "start.exe " & AnaSayfa
Keyword = Shell(Keyword, vbHide)
End Sub
'Where Public AnaSayfa is as string and is ;= "http://www.blablasite.com/default.asp?"
This code executes with no problems on Win98 however on NT4.0 and 2000 it crashes..
WHY?
Kiziltan Yuceil
Freelance Web/VB/VBA Programmer
"It's not what you know it's to whom you consult and with whom you collaborate"
-
Jul 27th, 2000, 08:55 AM
#2
Fanatic Member
No Sure.... Why not just do this
Private Declare Function ShellExecute Lib "shell32.dll" Alias "ShellExecuteA" (ByVal hWnd As Long, ByVal opOperation As String, ByVal lpFile As String, ByVal opParameters As String, ByVal lpDirectory As String, ByVal nShowCmd As Long) As Long
Public Sub ShellExe(What As String)
On Error Resume Next
Call ShellExecute(0&, vbNullString, What, vbNullString, vbNullString, vbNormalFocus)
End Sub
shellexe "http://www.blablasite.com/default.asp"
Kurt Simons
[I know I'm a hack but my clients don't!]
-
Jul 28th, 2000, 04:03 AM
#3
Thread Starter
Lively Member
Thanx Kurt!
that saved it and me!!
I am grateful..
Kiziltan Yuceil
Freelance Web/VB/VBA Programmer
"It's not what you know it's to whom you consult and with whom you collaborate"
-
Jul 28th, 2000, 06:43 AM
#4
Thread Starter
Lively Member
Urgent help needed on some other fact!
Kiziltan Yuceil
Freelance Web/VB/VBA Programmer
"It's not what you know it's to whom you consult and with whom you collaborate"
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
|