PocketIE, Javascript, and C# ActiveX alternative?

H

Hitchkas

I posted this in PocketPC newsgroup with no response yet, hopefully
somebody here has an answer.


I have an application that runs locally on PocketPC. The user
interface for this application is HTML with Javascript. The Javascript
on the page instantiates an ActiveX control written in C++ ATL. The
ActiveX does not have a visual interface and its basic functionality is
to access the serial port and do some calculations and return the
result.

I am in process of re-writing the application and was thinking to
create a C# alternative to the C++ ATL ActiveX and maybe even simplify
the installation process by eliminating the need to register the
control.

Is it possible to create a C# control to be instantiated by Javascript
and run by PocketIE locally in a PocketPC? I appreciate it if you can
point me to some articles or sample codes doing this.
 
N

Nicholas Paldino [.NET/C# MVP]

Hitchkas,

Well, in IE on the desktop, I would just create a C# component and
export it as a COM component. However, this would require registration on
the machine of the component.

Also, if I recall correctly, COM interop isn't supported on .NET. This
could be completely wrong, but I vaguely remember reading a post to this
effect.

As of now, that is the only way you are going to be able to access a
..NET component in Javascript in IE.

Hope this helps.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top