Re: [newbie]Calling eVc4++ dll from .NET application
- From: "Paul G. Tobey [eMVP]" <ptobey no spam AT no instrument no spam DOT com>
- Date: Wed, 9 Nov 2005 09:02:51 -0700
The OpenNETCF Smart Device Framework, found at www.opennetcf.org, has tons
of platform invoke (P/Invoke) declarations that you might use as examples.
Since you haven't said whether you're working in VB.NET or C#, I've given a
single example from the SDF below:
using System.Runtime.InteropServices;
// P/Invoke declarations.
[DllImport ("coredll.dll", SetLastError=true)]
private static extern IntPtr RequestDeviceNotifications(
byte[] devclass, IntPtr hMsgQ,
bool fAll );
Obviously, this isn't something general, where looking at this one example
is going to help much, except as a syntax sample.
By the way, the best place for managed code questions for Windows CE is
microsoft.public.dotnet.framework.compactframework.
Paul T.
"JB" <jb@xxxxxxxxx> wrote in message
news:4371ee74$0$29591$4fafbaef@xxxxxxxxxxxxxxxxxxxxxx
> Hi everybody,
>
> I've developed a very simple dll using eVc4++
> This dll was used as the JNI part of a java application running on a
> PocketPC 2003 device in order to access serial port and virtual Bluetooth
> serial ports.
>
> Now I have to make this dll usable from a .Net appliation.
>
> I've no experience on .NET at all.
>
> How I have to declare my dll functions in order to be easily utilized from
> a .NET application?(_declspec(dllexport), extern "C", ecc)
>
> If I want to make a very simple .Net application to test this dll, how
> this would be achieved? (If I'm not wrong i should use a DllImport
> call...is it true?)
>
> Can anyone point me in the right direction, even with a HelloWord piece of
> code (both dll and .Net app would be really appreciated)
>
> Thanks in advance.
> JB
.
- Follow-Ups:
- References:
- Prev by Date: Re: Best way to communicate with mobile devices in my situation ?
- Next by Date: Re: How to detect a network adapter which is disabled on WinCE
- Previous by thread: [newbie]Calling eVc4++ dll from .NET application
- Next by thread: Re: [newbie]Calling eVc4++ dll from .NET application
- Index(es):
Relevant Pages
|