Using Active X controls from C# on pocket PC 2002

  • Thread starter Thread starter Mark Batehup
  • Start date Start date
M

Mark Batehup

I am new to both C# and pocket pc development so sorry if this is a stupid
question to ask.

I am developing an app to run on both desktop and pocket pc platforms.

Is it possible to use an Active X control on the pocket pc from C#? I am
developing using VS .Net 2003. The Active X control I want to use is
useable in the Windows version of my program but I am unsure how to get it
working in the pocket pc version.

The Active X control was created in the eVC++ 3 software.

If is possible then where would be a good place to look for examples /
information / documentation?

Thx in advance.

Mark
 
The basic answer is "no". There's no COM support in .NET Compact Framework.
There are some various options that you might use to work around this,
though.

Option #1: CFCOM from Odyssey Software is a complete wrapper of COM for .NET
CF. It allows you to do anything that you'd expect to be able to do. It
costs money (but a lot less than trying to do this yourself; a *lot* less).

Option #2: You can create a DLL in C++ (not managed code), which will create
an instance of the ActiveX control and provide a procedural interface which
you can call from your .NET CF application using p/invoke. This will take
time and might not be good enough, if the ActiveX is primarily for display
of data.

Paul T.
 
Back
Top