Ramanand Bhat
Ramanand Bhat

Reputation: 183

Hosting ActiveX Controls in the .NET Compact Framework 2.0

After following the method to Host the ActiveX Web Browser (webvw.idl) control in C#, we are struck in getting webview.dll file from the mobile device.

To create a complete class definition by using AxImp.exe we are unable to get the webview.dll from the windows mobile device, now how shall we proceed further, please help.

Thanks, Ramanand

Upvotes: 0

Views: 1087

Answers (1)

Sheng Jiang 蒋晟
Sheng Jiang 蒋晟

Reputation: 15281

AxImp requires a type library. Run Visual Studio command prompt and go to in the pocket PC SDK include directory and execute

use midl /D UNDER_CE=$(CEVersion) webvw.idl here $(CEVersion) is your CE version, such as 0x420 or 0x600

There is a System.Windows.Forms.WebBrowser class in .NET Compact Framework 2.0. The open sourced OpenNETCF SDF have an WebBrowser control class under the OpenNETCF.Windows.Forms namespace in version 1.4.

Upvotes: 1

Related Questions