Basic4ppc - Windows Mobile Development  

Go Back   Basic4ppc - Windows Mobile Development > Main Category > Questions & Help Needed
Home Register FAQ Members List Search Today's Posts Mark Forums Read

Questions & Help Needed Post any question regarding Basic4ppc.


Default Browser (Desktop)


Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 09-10-2008, 03:26 AM
Junior Member
 
Join Date: Mar 2008
Posts: 32
Default Default Browser (Desktop)

Over the last few weeks I have been putting together an Geocaching application in B4PPC and it works fabulously (thanks to many peoples help and additional libraries). It addresses many of the issues power cachers have been fighting for years now.

It works great on the PPC, however I have had a request to compile it for the Desktop, which for 98% of it would not be an issue, however there is a section that I use dzt's HTMLview library to display some information. To get around it I would like to just feed a created .html file to the default browser.

The main question I have is how to determine what the default browser is?

Thanks
Reply With Quote
  #2 (permalink)  
Old 09-10-2008, 06:55 AM
Cableguy's Avatar
Basic4ppc Expert
 
Join Date: Apr 2007
Location: N 41š11'30.30" W 8š39'46.60"
Posts: 1,802
Awards Showcase
Forum Contributer 
Total Awards: 1
Default

You do not need to know what the default browser is, in order to show a webpage.
You can simply shell the html file, or embed a webBrowser object into your app...
If you shoose to shell an html page, the default browser, whtever it is, will be call upon to open the file....
__________________
Paulo Gomes
Porto, Portugal

"The Past is nothing more than the constructions of a Present that was once called Future"

Desktop PC: Currently NONE
Mobile Device: QTEK S200, WinMo 6.5
Laptop: Toshiba NB100-130

DLL Version Listing
Reply With Quote
  #3 (permalink)  
Old 09-10-2008, 07:32 AM
Basic4ppc Veteran
 
Join Date: Feb 2008
Location: Hilversum, The Netherlands
Posts: 295
Awards Showcase
Beta Tester 
Total Awards: 1
Default

Why wouldn't you use this?
Code:
Shell("\Windows\explorer.exe","<htmlfile location + name>")
Reply With Quote
  #4 (permalink)  
Old 09-10-2008, 07:09 PM
Junior Member
 
Join Date: Mar 2008
Posts: 32
Default

Quote:
Originally Posted by Mr_Gee View Post
Why wouldn't you use this?
Code:
Shell("\Windows\explorer.exe","<htmlfile location + name>")
You can but that does not use the Default Browser, it always uses IE... And there are many choices other than IE.
Reply With Quote
  #5 (permalink)  
Old 09-10-2008, 07:35 PM
Cableguy's Avatar
Basic4ppc Expert
 
Join Date: Apr 2007
Location: N 41š11'30.30" W 8š39'46.60"
Posts: 1,802
Awards Showcase
Forum Contributer 
Total Awards: 1
Default

Shelling ONLY the html file will open the default browser...
Like this
Shell("myfile.html")

This should open the default browser, have you tryied it?
__________________
Paulo Gomes
Porto, Portugal

"The Past is nothing more than the constructions of a Present that was once called Future"

Desktop PC: Currently NONE
Mobile Device: QTEK S200, WinMo 6.5
Laptop: Toshiba NB100-130

DLL Version Listing
Reply With Quote
  #6 (permalink)  
Old 09-10-2008, 08:31 PM
Basic4ppc Veteran
 
Join Date: Feb 2008
Location: Hilversum, The Netherlands
Posts: 295
Awards Showcase
Beta Tester 
Total Awards: 1
Default

Quote:
Originally Posted by bish0p View Post
You can but that does not use the Default Browser, it always uses IE... And there are many choices other than IE.
I know, but thats not what I meant
nevermind

running the file in the shell should also work
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Web browser for desktop and device agraham Additional Libraries 58 03-19-2010 10:12 AM
Canīt view whole Website with PPC Browser Smurfy2000 Forum Discussion 3 02-13-2008 08:08 AM
Desktop IDE default width of left window Rioven Basic4ppc Wishlist 1 09-20-2007 06:36 AM
Firefox is a great browser Erel Chit Chat 4 05-19-2007 09:41 AM
Default Installation Location conniemalan Basic4ppc Wishlist 1 05-15-2007 01:54 PM


All times are GMT. The time now is 11:55 PM.


Powered by vBulletin® Version 3.6.12
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0