From: Thomas D. <to...@gm...> - 2006-03-21 15:09:37
|
Hi, I have wrapped a simple C++ library for use in a C# .Net 2.0 environment, and on Windows this works without problems. However, I want to use the same wrapper on a Pocket PC (Mobile 5), and immediately run into one big problem: it appears as if the compact framework does not include the HandleRef class from System.Runtime.InteropServices. Swig however relies on this class for maintaining the connection to the c++ objects. Is there a way to generate C# wrappers that do not use the HandleRef class ? Or perhaps there is a class in the OpenNETCF library that might be used instead, e.g. SafeHandle (http://www.opennetcf.org/library/OpenNETCF.Runtime.InteropServices.SafeHan= dle.html) ? cheers, Tom |