Click here to Skip to main content
15,925,309 members
Home / Discussions / Mobile
   

Mobile

 
Questionmessaging Pin
spm431-Oct-06 3:01
spm431-Oct-06 3:01 
QuestionHow to dial contact number from an application(MFC) Pin
Jayakumar Narayanan30-Oct-06 22:53
Jayakumar Narayanan30-Oct-06 22:53 
AnswerRe: How to dial contact number from an application(MFC) Pin
AegamemnonTao1-Nov-06 16:56
AegamemnonTao1-Nov-06 16:56 
QuestionHow to simulate SMS and calls? Pin
arvaker8430-Oct-06 6:20
arvaker8430-Oct-06 6:20 
AnswerRe: How to simulate SMS and calls? Pin
Michael Hendrickx7-Nov-06 19:37
Michael Hendrickx7-Nov-06 19:37 
QuestionIs it possible to write app. for symbian by VS2005 and C# or VB.NET? Pin
Code4Null27-Oct-06 10:59
Code4Null27-Oct-06 10:59 
AnswerRe: Is it possible to write app. for symbian by VS2005 and C# or VB.NET? Pin
Bradml29-Oct-06 0:05
Bradml29-Oct-06 0:05 
GeneralRe: Is it possible to write app. for symbian by VS2005 and C# or VB.NET? Pin
arvaker8430-Oct-06 6:22
arvaker8430-Oct-06 6:22 
QuestionEmail problem for smartphone Pin
shambhu_hello26-Oct-06 1:38
shambhu_hello26-Oct-06 1:38 
QuestionRecord phone conversation with Wave API Pin
AegamemnonTao26-Oct-06 0:17
AegamemnonTao26-Oct-06 0:17 
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 

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.