For Programmers: Free Programming Magazines  


Home > Archive > Smartphone Developer Forum > January 2005 > How do I use a .dll for WCE400 on 2003 devices?









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author How do I use a .dll for WCE400 on 2003 devices?
Kingherc

2005-01-23, 4:04 pm

I'm currently working on a program based on the .NET Compact Framework (for
Smartphones 2003). I need to save a bitmap to a file format other than .bmp.
I've found a free project named libPng or libPngCe which is a library used to
manipulate .png format files. This library also supports wince
(evc3,evc4,evb). Its binaries (.dlls) support WCE211,WCE300,WCE400. I think I
just need the .dll of WCE400 (which uses the Standard SDK that supports
Smartphones 2003?).
But I cannot reference it to my program. Maybe it's because it's not .NET or
not supported for the current wince version?
Anyway ideas if I can use it and how?
Robert Levy [MS]

2005-01-23, 4:04 pm

Since you're trying to call from managed code (.NET CF) to a native DLL, you
need to "P/Invoke" rather than add a reference to the DLL in your project.
Google should point you towards resources on how to do that.

--
Robert Levy
Program Manager
Mobile Devices Product Group
http://blogs.msdn.com/windowsmobile

This posting is provided "AS IS" with no warranties, and confers no
rights.

Kingherc wrote:
> I'm currently working on a program based on the .NET Compact
> Framework (for Smartphones 2003). I need to save a bitmap to a file
> format other than .bmp. I've found a free project named libPng or
> libPngCe which is a library used to manipulate .png format files.
> This library also supports wince (evc3,evc4,evb). Its binaries
> (.dlls) support WCE211,WCE300,WCE400. I think I just need the .dll of
> WCE400 (which uses the Standard SDK that supports Smartphones 2003?).
> But I cannot reference it to my program. Maybe it's because it's not
> .NET or not supported for the current wince version?
> Anyway ideas if I can use it and how?



Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com