RE:llamar a funcion de dll
Espacio de nombres para hacer referencia a una dll
using System.Runtime.InteropServices;
////////////////////////////////////////////////////////////////////////////////////////////////
Ejemplo de una aplicacion:
using System;
using System.Runtime.InteropServices;
class PlatformInvokeTest
{
[DllImport("msvcrt.dll")]
public static extern int puts(string c);
[DllImport("msvcrt.dll")]
internal static extern int _flushall();
public static void Main()
{
puts("Test");
_flushall();
}
}