code_junkie

Interface from a C DLL to .NET

Nov 13th, 2011
123
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.29 KB | None | 0 0
  1. __declspec(dllexport) void __stdcall ProcessChunk(
  2. void *p_prochdl,
  3. const BIG_INPUT_STRC *p_inparams,
  4. BIG_OUTPUT_STRC *p_outparams
  5. );
  6.  
  7. byte[] buffer = ...;
  8. fixed(byte *pBuffer = buffer)
  9. {
  10. // do something with the pBuffer
  11. }
  12.  
  13. someValue = buffer[(elementsPerDimensions * x) + y];
Add Comment
Please, Sign In to add comment