Advertisement
Guest User

Untitled

a guest
Jun 20th, 2019
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.44 KB | None | 0 0
  1. using System;
  2. using System.Runtime.InteropServices;
  3.  
  4. namespace RsLibTest
  5. {
  6. class Program
  7. {
  8.  
  9. [DllImport(@"C:\rslib.dll")]
  10. static extern int add(int a, int b);
  11. [DllImport(@"C:\rslib.dll")]
  12. static extern void print_hello();
  13. static void Main(string[] args)
  14. {
  15. Console.WriteLine("Hello World!");
  16. Console.WriteLine(add(64, 34));
  17. print_hello();
  18. }
  19. }
  20. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement