fork download
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Runtime.InteropServices;
  6. using System.Drawing;
  7. using System.Drawing.Imaging;
  8.  
  9. using System.Diagnostics;
  10.  
  11. namespace ConsoleApplication1
  12. {
  13. class Program
  14. {
  15. [DllImport("dll_pack.dll")]
  16. private static extern double DLL_Add(double x, double y);
  17. [DllImport("dll_pack.dll")]
  18. static extern void test(IntPtr p, int x, int y);
  19.  
  20. static void Main(string[] args)
  21. {
  22. //System.Console.WriteLine(DLL_Add(2.3,2.3));
  23.  
  24. System.Console.WriteLine(DLL_Add(2.3, 1));
  25.  
  26.  
  27.  
  28. Bitmap b = new Bitmap(@"C://SOP5_10.5mm_25mm_5+5.bmp", true);
  29.  
  30. BitmapData d = b.LockBits(new Rectangle(0, 0, b.Width, b.Height), ImageLockMode.ReadOnly, PixelFormat.Format8bppIndexed);
  31. test(d.Scan0, d.Width, d.Height);
  32. b.UnlockBits(d);
  33.  
  34.  
  35. System.Console.ReadLine();
  36. }
  37. }
  38. }
  39.  
Not running #stdin #stdout 0s 0KB
stdin
Standard input is empty
stdout
Standard output is empty