eVB interop

  • Thread starter Thread starter Romu
  • Start date Start date
R

Romu

Hi all, simple question: is it possible to call from
a .Net CF software functions exported from a eVB DLL ?

In another words: can I use P/Invoke to call an eVB
program ?

Thanks.
 
I am not sure if I understand what you want to do. First
of, you can call functions exported from a eVC DLL.
However, if the DLL is actually an ActiveX control you can
not directly call it from the .NET CF because COM interop
is not supported. In that case you have to write a wrapper
around the ActiveX control, or make use of Odyssey
Software's CFCOM component
(http://www.odysseysoftware.com/cfcom_main.html).

If you want to activate an eVB application from within
a .NET CF application, sort of what the second part of
your question implies, you need to P/Invoke CreateProcess.
To make that easier you might want to take a look at
OpenNETCF.org's WinAPI library
(http://www.opennetcf.org/winapi.asp).

Regards,
Maarten Struys, eMVP
PTS Software bv
 
You cannot create an eVB dll. The only interop possible would be to start
the eVB application using the CreateProcess API call - see the OpenNETCF
WinAPI library for an implementation of this method -
www.opennetcf.org/winapi.asp

You can create a dll project with eVC++ and if the functions are exposed as
static C functions they can be called from .NET using Platform Invoke.

Peter
 
Thanks guys for your help.
As you probably saw, I'm totally newbie to VB and that
message was to answer a question I have from a french
newbie PPC developper.

I think I will continue to ignore eVB ;-)
 
Back
Top