R
Razvan Dragomirescu
Hello everyone,
I'm pretty new to this P/Invoke thing so excuse me if I'm asking the
obvious. I have a C# .NET CF application that needs to call into an
unmanaged DLL. I do not have access to the sources of that DLL (it contains
some proprietary code that we're not allowed to see), but I can ask the
developers of that DLL to modify their code to make it easier for us to call
it from the managed app.
Ideally, I would be looking at 3 function calls into that dll:
public void Initialize(); // initialize the engine
public void Process(byte[] input); // called multiple times with various
byte arrays to process
public byte[] Digest(); // complete the processing and return a digest
Could anyone help me with a bit of skeleton code in unmanaged code to make
this happen? I've read a bunch of tutorials on the subject but I can't say
I'm confident enough to do this on my own just yet.
Thank you,
Razvan
I'm pretty new to this P/Invoke thing so excuse me if I'm asking the
obvious. I have a C# .NET CF application that needs to call into an
unmanaged DLL. I do not have access to the sources of that DLL (it contains
some proprietary code that we're not allowed to see), but I can ask the
developers of that DLL to modify their code to make it easier for us to call
it from the managed app.
Ideally, I would be looking at 3 function calls into that dll:
public void Initialize(); // initialize the engine
public void Process(byte[] input); // called multiple times with various
byte arrays to process
public byte[] Digest(); // complete the processing and return a digest
Could anyone help me with a bit of skeleton code in unmanaged code to make
this happen? I've read a bunch of tutorials on the subject but I can't say
I'm confident enough to do this on my own just yet.
Thank you,
Razvan