ActiveX Controls on Windows Mobile

J

Jarod_24

I just downloaded a activex control that was written in C# and tried to view
it on my PDA's Internet Explorer.
At my regular PC it displayed just fine, but nothing showed up on the pda.

Do ActiveX controls that are to be used by a pda need to be written in the
..net compact framework, or am i missing something else here?

i have a HP iPaq 2490 with Windows Mobile Premium installed

While i'm at it; does a activex control allow you to communicate with
devices. My employer needs a activex control to interface with a barcode
scanner.


*** Free account sponsored by SecureIX.com ***
*** Encrypt your Internet usage with a free VPN account from http://www.SecureIX.com ***
 
C

Cor Ligthert [MVP]

Jarod,

I cannot see the relation to the newsgroup languages.vb, can you give us a
hint?

Cor
 
J

Jarod_24

Cor Ligthert said:
Jarod,

I cannot see the relation to the newsgroup languages.vb, can you give us a
hint?

hm, maybe that i plan to write an activex in vb.net
other than that i guess nothing, just posted to my usual groups


*** Free account sponsored by SecureIX.com ***
*** Encrypt your Internet usage with a free VPN account from http://www.SecureIX.com ***
 
B

Brian Henry

anything running on compact framework, on a pocket pc must be writen for a
pocket pc to start with. Second off, .NET framework does not make ActiveX
controls.. You may have to recreate the control in .NET for the Mobile
framework
 
P

Paul G. Tobey [eMVP]

It's actually worse than that. This question should have been targeted
*only* at microsoft.public.dotnet.framework.compactframework. You can't use
managed code to create ActiveX controls for Windows CE/Windows Mobile, at
this point. That's because hosting the managed runtime from unmanaged code,
like IE, isn't supported. There are various work-arounds that you could
use, but it's not worth it. If you have something that should be hosted in
IE, write it in unmanaged code.

Paul T.
 
B

Brian Henry

You can't create ActiveX controls in managed code. Sure there are hacks out
there to do this, but natively no, and from my point of view, its not worth
it.. just write a user control or a custom control if you are going to write
it by hand
 
J

Jarod_24

So if its not possible to create a ActiveX in managed code.
Then what is the difference between ActiveX, a 'Windows Control Library' and
a 'Web Control Library'?
i mean in the context of beign able to run in a web-browser and display a UI
to the user...

any pointers to a site/articles that talk about ActiveX, msdn is so
confusingly large and un-structured.


Paul G. Tobey said:
It's actually worse than that. This question should have been targeted
*only* at microsoft.public.dotnet.framework.compactframework. You can't
use managed code to create ActiveX controls for Windows CE/Windows Mobile,
at this point. That's because hosting the managed runtime from unmanaged
code, like IE, isn't supported. There are various work-arounds that you
could use, but it's not worth it. If you have something that should be
hosted in IE, write it in unmanaged code.

Paul T.


*** Free account sponsored by SecureIX.com ***
*** Encrypt your Internet usage with a free VPN account from http://www.SecureIX.com ***
 
P

Paul G. Tobey [eMVP]

Well, I'm pretty much an embedded-only guy these days, but I think that Web
controls run in ASP.NET, so that's not the same thing, quite, as an ActiveX
control. A Windows Control Library object, I think, is a desktop thing (a
managed 'control' usable from .NET Framework applications). If you choose
Visual C++ in the New Project wizard in VS2005 and look under Smart Device,
those are the types of projects that VS 2005 supports generating for Windows
CE/Windows Mobile devices. You can see that one of them is an MFC ActiveX
control. Of course, you could write your own without MFC, if you wanted to,
just by generating a Win32 Smart Device Project, and choosing a DLL and then
implementing all of the suitable interfaces, DLL functions for
self-registration, etc.

I don't know of any Windows CE-focused articles, although ActiveX works the
same as on the desktop, at least generally. You might search for ""windows
ce" activex" in MSDN and see what pops up, though. The only really unusual
thing that you might not be aware of automatically is that IObjectSafety
pretty much has to be implemented in Windows CE ActiveX controls for your
control to work in IE.

Paul T.
 

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