Using .dll methods to load data from file in C# code

Posted by Espinas.iss on Stack Overflow See other posts from Stack Overflow or by Espinas.iss
Published on 2010-05-28T14:55:28Z Indexed on 2010/05/28 17:22 UTC
Read the original article Hit count: 221

Filed under:
|
|
|

I want to use in C# these methods:

*      int LibRaw::open_datastream(LibRaw_abstract_datastream *stream)
*      int LibRaw::open_file(const char *rawfile)
*      int LibRaw::open_buffer(void *buffer, size_t bufsize)
*      int LibRaw::unpack(void)
*      int LibRaw::unpack_thumb(void)

that are stored in a libraw.dll. These functions one by one load data from file... I've been reading about P/Invoke but i'm not sure how to invoke them. Can anyone show me an example how to use all of these functions together in C# to load file (raw image stored in folder) or just how to PIvoke one of them.

Thanx!

© Stack Overflow or respective owner

Related posts about c#

Related posts about c++