Click here to Skip to main content
15,898,035 members
Home / Discussions / Mobile
   

Mobile

 
QuestionTouch Screen/Sound/Button Help - Thank You!! Pin
RSMitchell2224-Oct-06 18:10
RSMitchell2224-Oct-06 18:10 
QuestionMap the network drive / Read Text File from Remote Server Pin
Ram Murugan23-Oct-06 6:14
Ram Murugan23-Oct-06 6:14 
QuestionConnecting to SQL 2000 on PC from Mobile App Pin
AlexeiXX318-Oct-06 9:01
AlexeiXX318-Oct-06 9:01 
AnswerRe: Connecting to SQL 2000 on PC from Mobile App Pin
AlexeiXX327-Oct-06 10:39
AlexeiXX327-Oct-06 10:39 
QuestionDrawing and walking in a room with WinCe with RTLS Pin
royalhero18-Oct-06 3:21
royalhero18-Oct-06 3:21 
QuestionShellWindows in WM5.0 Pin
Geoff_Praha18-Oct-06 1:34
Geoff_Praha18-Oct-06 1:34 
Questionhow to synchronize the data between the Pocket PC database and MySql database Pin
Shoaib A Khan17-Oct-06 23:40
Shoaib A Khan17-Oct-06 23:40 
QuestionMain Window as WebBrowser for WM 5.0 [modified] Pin
Geoff_Praha17-Oct-06 1:06
Geoff_Praha17-Oct-06 1:06 
I want to be able to create and control a web browser on a smart phone running Windows Mobile 5.0.

If I create a new non-dialog based project under VS C++, 2005 I get a single main window created when I start the (empty) application.

Is it possible to add an address bar to this window, use it as a web browser and control it using the IWebBrowser2 interface?

I've tried doing it using the following code, but nothing happens (all the code works fine, no errors, but nothing appears on the display)

hr = CoInitializeEx (NULL, COINIT_MULTITHREADED);

if (hr == S_OK) {
hr = CoCreateInstance (CLSID_WebBrowser, NULL, CLSCTX_INPROC_SERVER | CLSCTX_INPROC_HANDLER, IID_IWebBrowser2, (LPVOID *)&m_pBrowser);

if (hr == S_OK) {
// make the browser visible
VARIANT_BOOL pBool=true;
m_pBrowser->put_Visible(pBool);

COleVariant vaURL(_T("http://www.hotmail.com")) ;
COleVariant null;
m_pBrowser->Navigate2(vaURL,null,null,null,null) ;
}
}


Any help would be appreciated.

Ta!





-- modified at 8:21 Tuesday 17th October, 2006
AnswerRe: Main Window as WebBrowser for WM 5.0 Pin
jalsa G19-Oct-06 23:09
jalsa G19-Oct-06 23:09 
GeneralRe: Main Window as WebBrowser for WM 5.0 Pin
Geoff_Praha19-Oct-06 23:20
Geoff_Praha19-Oct-06 23:20 
GeneralRe: Main Window as WebBrowser for WM 5.0 Pin
jalsa G20-Oct-06 4:35
jalsa G20-Oct-06 4:35 
GeneralRe: Main Window as WebBrowser for WM 5.0 [modified] Pin
Geoff_Praha22-Oct-06 21:37
Geoff_Praha22-Oct-06 21:37 
GeneralRe: Main Window as WebBrowser for WM 5.0 Pin
jalsa G27-Oct-06 2:47
jalsa G27-Oct-06 2:47 
GeneralRe: Main Window as WebBrowser for WM 5.0 Pin
Geoff_Praha27-Oct-06 2:49
Geoff_Praha27-Oct-06 2:49 
GeneralRe: Main Window as WebBrowser for WM 5.0 Pin
jalsa G29-Oct-06 18:49
jalsa G29-Oct-06 18:49 
GeneralRe: Main Window as WebBrowser for WM 5.0 Pin
Geoff_Praha29-Oct-06 21:24
Geoff_Praha29-Oct-06 21:24 
GeneralRe: Main Window as WebBrowser for WM 5.0 Pin
jalsa G1-Nov-06 0:18
jalsa G1-Nov-06 0:18 
Questionwriting text fies in mobiles application in vb.net Pin
Vikash Yadav16-Oct-06 21:22
Vikash Yadav16-Oct-06 21:22 
AnswerRe: writing text fies in mobiles application in vb.net Pin
acroitoriu17-Oct-06 12:17
acroitoriu17-Oct-06 12:17 
QuestionStarting with WM and Visual C# 2005 Pin
arvaker8416-Oct-06 7:16
arvaker8416-Oct-06 7:16 
AnswerRe: Starting with WM and Visual C# 2005 Pin
acroitoriu17-Oct-06 12:09
acroitoriu17-Oct-06 12:09 
GeneralRe: Starting with WM and Visual C# 2005 Pin
arvaker8417-Oct-06 22:11
arvaker8417-Oct-06 22:11 
QuestionHow to get the base station (cell) id of a mobile phone in a GSM network Pin
AlexAngAB16-Oct-06 2:06
AlexAngAB16-Oct-06 2:06 
QuestionNeed for grid control Pin
Begunov14-Oct-06 15:36
Begunov14-Oct-06 15:36 
QuestionSerial communication Pin
cosmomen13-Oct-06 4:35
cosmomen13-Oct-06 4:35 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.