Advertisement
Guest User

Untitled

a guest
Jan 26th, 2018
95
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.31 KB | None | 0 0
  1. using System;
  2. using System.Runtime.InteropServices;
  3.  
  4. namespace MyTestProg{
  5.     class Program{
  6.    
  7.         [DllImport("MyProjectLibrary.dll")]
  8.         private static extern int OnePlus(int input_var);
  9.        
  10.         static void Main(string[] args){
  11.             int i=1;
  12.             i = OnePlus(i);
  13.             Console.WriteLine("Hello world! %d",i);
  14.         }
  15.     }
  16. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement