PC Review


Reply
Thread Tools Rate Thread

C#, CF, How can I access a Win CE3.0 ActiveX control

 
 
Neville Lang
Guest
Posts: n/a
 
      2nd Oct 2003
Hi all,

I have a third party ActiveX control, with the documented exported
functions, written for Win CE 3.0, I guess using eVC. My question is what is
the best strategy for accessing some of its functions from within C#?

After reviewing some past posts via Google, I understand that CF does not
support ActiveX controls. I did notice a paper that mentioned using P/Invoke
to access an ActiveX control via a eVC DLL wrapper. Since I have some
knowledge of eVC but not very much on ActiveX controls, I am really asking
for a starting point in creating the DLL wrapper so that I can call it from
P/Invoke, which I have some knowledge of also.

Earlier this year, I used P/Invoke quite a bit to call functions in a third
party DLL library. What I am not sure here is the ActiveX control as I have
never had to interface with one before.

Regards,
Neville Lang


 
Reply With Quote
 
 
 
 
Chris Tacke, eMVP
Guest
Posts: n/a
 
      2nd Oct 2003
You need to create a DLL that calls the COM interfaces and returns usable
pointers through a P/Invoke supported interface. Take a look at the POOM
wrapper sample at gotdotnet.

-Chris


"Neville Lang" <(E-Mail Removed)> wrote in message
news:%(E-Mail Removed)...
> Hi all,
>
> I have a third party ActiveX control, with the documented exported
> functions, written for Win CE 3.0, I guess using eVC. My question is what

is
> the best strategy for accessing some of its functions from within C#?
>
> After reviewing some past posts via Google, I understand that CF does not
> support ActiveX controls. I did notice a paper that mentioned using

P/Invoke
> to access an ActiveX control via a eVC DLL wrapper. Since I have some
> knowledge of eVC but not very much on ActiveX controls, I am really asking
> for a starting point in creating the DLL wrapper so that I can call it

from
> P/Invoke, which I have some knowledge of also.
>
> Earlier this year, I used P/Invoke quite a bit to call functions in a

third
> party DLL library. What I am not sure here is the ActiveX control as I

have
> never had to interface with one before.
>
> Regards,
> Neville Lang
>
>



 
Reply With Quote
 
Neville Lang
Guest
Posts: n/a
 
      2nd Oct 2003
Chris,

Thank you for the tip. I had a look at GoDotNet, did a search on POOM and
nothing showed up. I then did a search on Pocket Outlook and, although there
were some entries, I could not find the sample you referred to. Do you have
a specific link I could follow?

Regards,
Neville Lang



"Chris Tacke, eMVP" <(E-Mail Removed)> wrote in message
news:%(E-Mail Removed)...
> You need to create a DLL that calls the COM interfaces and returns usable
> pointers through a P/Invoke supported interface. Take a look at the POOM
> wrapper sample at gotdotnet.
>
> -Chris
>
>
> "Neville Lang" <(E-Mail Removed)> wrote in message
> news:%(E-Mail Removed)...
> > Hi all,
> >
> > I have a third party ActiveX control, with the documented exported
> > functions, written for Win CE 3.0, I guess using eVC. My question is

what
> is
> > the best strategy for accessing some of its functions from within C#?
> >
> > After reviewing some past posts via Google, I understand that CF does

not
> > support ActiveX controls. I did notice a paper that mentioned using

> P/Invoke
> > to access an ActiveX control via a eVC DLL wrapper. Since I have some
> > knowledge of eVC but not very much on ActiveX controls, I am really

asking
> > for a starting point in creating the DLL wrapper so that I can call it

> from
> > P/Invoke, which I have some knowledge of also.
> >
> > Earlier this year, I used P/Invoke quite a bit to call functions in a

> third
> > party DLL library. What I am not sure here is the ActiveX control as I

> have
> > never had to interface with one before.
> >
> > Regards,
> > Neville Lang
> >
> >

>
>



 
Reply With Quote
 
Paul G. Tobey [eMVP]
Guest
Posts: n/a
 
      2nd Oct 2003
There's also a component from Odyssey Software which allows .NET CF
applications to use ActiveX controls directly, CFCom, I think it's called.
If you have a complicated control to wrap, I'm sure it's cheaper to go that
way.

Paul T.

"Chris Tacke, eMVP" <(E-Mail Removed)> wrote in message
news:%(E-Mail Removed)...
> You need to create a DLL that calls the COM interfaces and returns usable
> pointers through a P/Invoke supported interface. Take a look at the POOM
> wrapper sample at gotdotnet.
>
> -Chris
>
>
> "Neville Lang" <(E-Mail Removed)> wrote in message
> news:%(E-Mail Removed)...
> > Hi all,
> >
> > I have a third party ActiveX control, with the documented exported
> > functions, written for Win CE 3.0, I guess using eVC. My question is

what
> is
> > the best strategy for accessing some of its functions from within C#?
> >
> > After reviewing some past posts via Google, I understand that CF does

not
> > support ActiveX controls. I did notice a paper that mentioned using

> P/Invoke
> > to access an ActiveX control via a eVC DLL wrapper. Since I have some
> > knowledge of eVC but not very much on ActiveX controls, I am really

asking
> > for a starting point in creating the DLL wrapper so that I can call it

> from
> > P/Invoke, which I have some knowledge of also.
> >
> > Earlier this year, I used P/Invoke quite a bit to call functions in a

> third
> > party DLL library. What I am not sure here is the ActiveX control as I

> have
> > never had to interface with one before.
> >
> > Regards,
> > Neville Lang
> >
> >

>
>



 
Reply With Quote
 
Neville Lang
Guest
Posts: n/a
 
      3rd Oct 2003
Paul,

Thank you for that advice but since I want to do a public roll-out of my
app, their licence fees are prohibitive.

I am simply looking for a paper or information on how I might be able to
build a wrapper in eVC to interact with an ActiveX control written for WinCE
3.0 so that I can use P/Invoke from C# CF.

At this stage, I have very limited knowledge of ActiveX components but some
knowledge of eVC and much better knowledge, over the last months, on C# for
CF.

Regards,
Neville Lang


"Paul G. Tobey [eMVP]" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> There's also a component from Odyssey Software which allows .NET CF
> applications to use ActiveX controls directly, CFCom, I think it's called.
> If you have a complicated control to wrap, I'm sure it's cheaper to go

that
> way.
>
> Paul T.
>
> "Chris Tacke, eMVP" <(E-Mail Removed)> wrote in message
> news:%(E-Mail Removed)...
> > You need to create a DLL that calls the COM interfaces and returns

usable
> > pointers through a P/Invoke supported interface. Take a look at the

POOM
> > wrapper sample at gotdotnet.
> >
> > -Chris
> >
> >
> > "Neville Lang" <(E-Mail Removed)> wrote in message
> > news:%(E-Mail Removed)...
> > > Hi all,
> > >
> > > I have a third party ActiveX control, with the documented exported
> > > functions, written for Win CE 3.0, I guess using eVC. My question is

> what
> > is
> > > the best strategy for accessing some of its functions from within C#?
> > >
> > > After reviewing some past posts via Google, I understand that CF does

> not
> > > support ActiveX controls. I did notice a paper that mentioned using

> > P/Invoke
> > > to access an ActiveX control via a eVC DLL wrapper. Since I have some
> > > knowledge of eVC but not very much on ActiveX controls, I am really

> asking
> > > for a starting point in creating the DLL wrapper so that I can call it

> > from
> > > P/Invoke, which I have some knowledge of also.
> > >
> > > Earlier this year, I used P/Invoke quite a bit to call functions in a

> > third
> > > party DLL library. What I am not sure here is the ActiveX control as I

> > have
> > > never had to interface with one before.
> > >
> > > Regards,
> > > Neville Lang
> > >
> > >

> >
> >

>
>



 
Reply With Quote
 
Neville Lang
Guest
Posts: n/a
 
      3rd Oct 2003
Chris,

I should have done a wider search of Google. I have found some more
information on POOM. Thank you again for the tip.

Regards,
Neville Lang




"Chris Tacke, eMVP" <(E-Mail Removed)> wrote in message
news:%(E-Mail Removed)...
> You need to create a DLL that calls the COM interfaces and returns usable
> pointers through a P/Invoke supported interface. Take a look at the POOM
> wrapper sample at gotdotnet.
>
> -Chris
>
>
> "Neville Lang" <(E-Mail Removed)> wrote in message
> news:%(E-Mail Removed)...
> > Hi all,
> >
> > I have a third party ActiveX control, with the documented exported
> > functions, written for Win CE 3.0, I guess using eVC. My question is

what
> is
> > the best strategy for accessing some of its functions from within C#?
> >
> > After reviewing some past posts via Google, I understand that CF does

not
> > support ActiveX controls. I did notice a paper that mentioned using

> P/Invoke
> > to access an ActiveX control via a eVC DLL wrapper. Since I have some
> > knowledge of eVC but not very much on ActiveX controls, I am really

asking
> > for a starting point in creating the DLL wrapper so that I can call it

> from
> > P/Invoke, which I have some knowledge of also.
> >
> > Earlier this year, I used P/Invoke quite a bit to call functions in a

> third
> > party DLL library. What I am not sure here is the ActiveX control as I

> have
> > never had to interface with one before.
> >
> > Regards,
> > Neville Lang
> >
> >

>
>



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
ActiveX Control prompt "An ActiveX control on this page might be u =?Utf-8?B?UmFodWw=?= Windows Vista General Discussion 2 1st Aug 2006 05:08 PM
Creating an ActiveX control for Access Jon Lewis Microsoft Access 5 28th Apr 2006 09:42 AM
how to access ActiveX Control frm VC JothiKumar Microsoft VC .NET 0 10th Mar 2005 01:35 PM
use activex control in access 2003? =?Utf-8?B?S29uYQ==?= Microsoft Access Forms 0 9th Nov 2004 06:25 AM
How to Install an ActiveX control in Access XP? Mota Microsoft Access Form Coding 1 8th Jul 2004 01:28 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 10:26 AM.