PDA Street

Home | News | Reviews | Features | FREE Downloads | Forums | Compare PDA Prices | Compare SmartPhone Prices
 WindowsMobileToday: Message Boards: Developers: Network Detection (Archived)

Network Detection
(Archived Message)

Read Replies | Start New Thread | Developers Board Index

Developers Board (Del Msg)
Title: Network Detection
Posted By: Steve
E-mail: ratansp@hotmail.com
Date: 11/19/2001 at 20:29:30

Recent Posts
Secure Digital Card Modem
eBooks not being found on
Bluetooth phones
Ipaq screen iput problem
Wireless To Wireless
Outlook calendar plugin?
Options for new iPaq buye
Pocket Inbox
Help with Buying a PDA
Ipaq 1945 or 2215 with Na
More ...  
 
Message:

Hi,

I have wince running on my IPAQ and am writing an application that needs to detect whether wireless connection (802.11b) is present or not. Basically, if it is then I want to launch IE. I am doing that using the code as below:

==Start code.
bool AppTester::LaunchIE()
{

SHELLEXECUTEINFO sei;
memset(&sei, 0, sizeof (sei));
sei.cbSize = sizeof (sei);
sei.fMask = 0 ;
sei.lpParameters = "www.cnn.com";
sei.lpFile = _T("IEXPLORE.EXE");
sei.lpVerb = _T("Open");

if(ShellExecuteEx (&sei) == 0)
{
TCHAR szError[100];
wsprintf(szError,_T("Error calling ShellExecuteEx: %d"),GetLastError());
MessageBox(NULL,szError,_T("Error"),MB_OK);
return FALSE;
}return TRUE;
}
====End code.
My development environment is using embedded visual c++.
Now my question is, If connection is available IE will launch with no problem and web page will be shown (using above code). But, if no connection is available IE will still launch but will time out after sometime and say "Page you are looking for cannot be found"

What I want is to keep the user of the IPAQ transparent from the connection. Hence, I need to test before launching IE and see if connection is available or not. Is it is, then I can simply launch the web page. Else I want to display some other page that I have in my cache.

Hopefully, my question can be understood. So, is there a way in my program I can detect for presence of network connection before hand????

I would appreciate if you can give me some sample code to look at.

Thanks





Is this message offensive or in violation of this board's policies? If so report it by clicking here.

Message Thread

For Additional Information:

Latest Articles:

  • Review: WMWiFiRouter -Turns Smartphones into Hotspots
  • 2009: The Year of the Smartphone?
  • Texting & Price Hiking: Does It Matter?
  • Motorola's Year of Job Cuts
  • Smaller Gadgets a Big Theme at CES
  • iPhone & Social Networks:Tech's Survivors in '09
  • RIM Takes Motorola to Court Over Hiring
  • Security Vendor Seeks to Fight Off RIM Overtures
  • iPhone, BlackBerry Storm to Square Off in 2009
  • 4G: Here It Comes, Ready or Not -- Part II
  • Latest Downloads:

  • Power Budget 1.0.5 (Pocket PC)
  • PocketPRP - Personal Resource Planner software for Windows Mobile Pocket PC 12.08 (Pocket PC)
  • PocketPRP - Personal Resource Planner software for Windows Mobile Pocket PC 12.08 (Pocket PC)
  • Lemur Searcher 1.10 (Pocket PC)
  • MyMotion 1.12 (Pocket PC)
  • Pocket 12C SE Financial Calculator 1.70 (Pocket PC)
  • MoneyCalc 1.1.0 (Pocket PC)
  • SelectRadioŽ Internet and Satellite Radio Software 4.5 (Pocket PC)
  • Measure Unit Converter and Calculator for Pocket PC 1.0 (Pocket PC)
  • Pocket 10B SE Business Calculator 2.10 (Pocket PC)




  • internet.comearthweb.comDevx.commediabistro.comGraphics.com

    Search:

    Jupitermedia Corporation has two divisions: Jupiterimages and JupiterOnlineMedia

    Jupitermedia Corporate Info

    Legal Notices, Licensing, Reprints, Permissions, Privacy Policy.
    Advertise | Newsletters | Tech Jobs | Shopping | E-mail Offers