Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Runtime.InteropServices;
- namespace MyTestProg{
- class Program{
- [DllImport("MyProjectLibrary.dll")]
- private static extern int OnePlus(int input_var);
- static void Main(string[] args){
- int i=1;
- i = OnePlus(i);
- Console.WriteLine("Hello world! %d",i);
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement