Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on Jul 14th, 2012  |  syntax: None  |  size: 0.35 KB  |  hits: 13  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. c   logic, c# gui
  2. // PInvokeTest.cs
  3. using System;
  4. using System.Runtime.InteropServices;
  5.  
  6. class PlatformInvokeTest
  7. {
  8.     [DllImport("msvcrt.dll")]
  9.     public static extern int puts(string c);
  10.     [DllImport("msvcrt.dll")]
  11.     internal static extern int _flushall();
  12.  
  13.     public static void Main()
  14.     {
  15.         puts("Test");
  16.         _flushall();
  17.     }
  18. }