Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Runtime.InteropServices;
- namespace RsLibTest
- {
- class Program
- {
- [DllImport(@"C:\rslib.dll")]
- static extern int add(int a, int b);
- [DllImport(@"C:\rslib.dll")]
- static extern void print_hello();
- static void Main(string[] args)
- {
- Console.WriteLine("Hello World!");
- Console.WriteLine(add(64, 34));
- print_hello();
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement