Page 1 of 1
Window 98 RunProgram Gotcha?
Posted: Mon May 03, 2004 1:28 am
by Karbon
Code: Select all
RunProgram("http://www.google.com")
Under Windows 2000 and higher it opens the default browser and goes to
www.google.com - under Windows 98 it does nothing..
I'm not sure if this is any kind of bug in PB, it might be that 98 just doesn't support this kind of thing.. If anyone has any more of a clue than I do on this please let me know!
Re: Window 98 RunProgram Gotcha?
Posted: Mon May 03, 2004 3:46 am
by NoahPhense
Karbon wrote:Code: Select all
RunProgram("http://www.google.com")
Under Windows 2000 and higher it opens the default browser and goes to
www.google.com - under Windows 98 it does nothing..
I'm not sure if this is any kind of bug in PB, it might be that 98 just doesn't support this kind of thing.. If anyone has any more of a clue than I do on this please let me know!
What version of IE ?
- np
Posted: Mon May 03, 2004 7:38 am
by blueznl
i think not all versions of 98 support this, it might be related to the 'start' command on the command prompt that i think doesn't exist on windows 98 either (not on me own machine, can't check at the moment)
Posted: Mon May 03, 2004 9:11 am
by fweil
NoahPhense,
If RunProgram does not apply, does ShellExecute() work for you ?
Code: Select all
ShellExecute_(0, "open", "http://www.purebasic.com", "", "", 0)
Rgrds
..
Posted: Mon May 03, 2004 12:06 pm
by NoahPhense
fweil wrote:NoahPhense,
If RunProgram does not apply, does ShellExecute() work for you ?
Code: Select all
ShellExecute_(0, "open", "http://www.purebasic.com", "", "", 0)
Rgrds
Its not me, it's Karbon.
I was attempting to help diagnose.
- np
Posted: Mon May 03, 2004 12:08 pm
by fweil
Sorry !
I should upgrade to 3.91 !

..
Posted: Mon May 03, 2004 12:22 pm
by NoahPhense
fweil wrote:Sorry !
I should upgrade to 3.91 !

Good Idea..
- np
Posted: Mon May 03, 2004 1:21 pm
by Karbon
Yes, shellexecute_() does work!
Posted: Mon May 03, 2004 1:27 pm
by benny
@Karbon:
In Win98 go to ->START->EXECUTE COMMAND
and then try to type in:
Does this open the explorer with google
In XP it does - so if it doesn't, I think it's Win98-related, because IMHO the
RunProgram-Command is like the START->EXECUTE COMMAND thing

:roll:
Otherwise try something like
Code: Select all
Windows.s = Space(256)
GetWindowsDirectory_(@Windows.s, 256)
RunProgram("iexplore.exe", "http://www.google.com", Windows.s)
Maybe this helps
EDIT
Ahhhh .. ok .. problem already solved
I was too late ... as always!
Re: Window 98 RunProgram Gotcha?
Posted: Tue May 04, 2004 12:29 am
by PB
> RunProgram("
http://www.google.com")
> under Windows 98 it does nothing..
> I'm not sure if this is any kind of bug
Well, technically it's NOT a bug because it's RunProgram, not OpenWebPage.

Posted: Tue May 04, 2004 1:09 am
by Brice Manuel
Windows.s = Space(256)
GetWindowsDirectory_(@Windows.s, 256)
RunProgram("iexplore.exe", "
http://www.google.com", Windows.s)
Just an FYI, you don't want to run internet explorer, you would want to run explorer. You also would want to run explorer instead of start. Examples in Pseudocode:
RunProgram "explorer.exe" "
http://whatever.com"
RunProgram "explorer.exe" "whatever.bmp"
RunProgram "explorer.exe" "whatever.wav"
Posted: Tue May 04, 2004 1:38 am
by Karbon
I didn't say it was a bug - it's a "gotcha" - something to keep in mind!
Use ShellExecute_() if you want to open the default browser, though, even on Win98..
Posted: Wed May 05, 2004 2:56 am
by PB
> I didn't say it was a bug
I was just responding to your comment of "I'm not sure if this is any kind of bug" by replying that it isn't, that's all.

Posted: Wed May 05, 2004 4:52 am
by Karbon
"Unsupported feature" we'll call it
