Developing native library for .NET CF

  • Thread starter Thread starter manoj
  • Start date Start date
M

manoj

We need to develop a native library C++ for use by potentially .NET CF 2.0
applications
or maybe even native C++ (Win32) apps. We are using VS2008 for develpment.

Is it best to develop a COM component to implement the libary or should it
be a standard
C api interface which a managed app can just pinvoke or does it not make a
difference.
We were wondering what was easier in tems of marshalling the types.

Thanks



__________ Information from ESET Smart Security, version of virus signature database 4111 (20090528) __________

The message was checked by ESET Smart Security.

http://www.eset.com
 
We just created DLLs. If you google, you will find some good examples
of how to do this. However, after putting in most of the functionality
we needed, I stumbled upon SmartDeviceFramework: (
http://www.opennetcf.com/Products/SmartDeviceFramework/tabid/65/Default.aspx
) Had I known of this to begin with, it would've saved a lot of time.
If you are deadset on doing it yourself, I suggest having an interface
class for your code (on the .NET side) as that makes the code much
more readable.
 
We just created DLLs. If you google, you will find some good examples
of how to do this. However, after putting in most of the functionality
we needed, I stumbled upon SmartDeviceFramework: (
http://www.opennetcf.com/Products/SmartDeviceFramework/tabid/65/Default.aspx
) Had I known of this to begin with, it would've saved a lot of time.
If you are deadset on doing it yourself, I suggest having an interface
class for your code (on the .NET side) as that makes the code much
more readable.
 
Back
Top