Thomas,
You could create an unsafe pointer, but that would require most of your
code to be marked as unsafe (at least, anywhere that uses it).
A better idea would be to have a managed wrapper that exposes a Handle
property (or whatever you want to call it), which returns an IntPtr which
you can pass back to any unmanaged functions you need to.
Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
-
mv*@spam.guard.caspershouse.com
<SH******@newsgroup.nospam> wrote in message
news:uB**************@TK2MSFTNGP12.phx.gbl...
Hi,
In our system we get image buffers through a native dll as void*. We want
to manage several of this blocks by C# objects an pass them wen needed to
a native image processing library.
What is the best way to do this? Can I just declare a unsafe pointer as
member of a class?
Best regards
Thomas